#include <Graph.hpp>
|
void | addNode (Node< V > *newNode) |
|
void | addNode (Node< V > *nextNode, std::vector< Node< V > * > adjacentNodes, double weight) |
|
void | addNode (Node< V > *nextNode, std::vector< Node< V > * > adjacentNodes) |
|
void | addNode (Node< V > *nextNode, Node< V > *nodeITSLATE) |
|
void | addConnection (Node< V > *one, Node< V > *two, double weight) |
|
void | addConnection (Node< V > *one, Node< V > *two) |
|
void | addNode (Node< V > *nextNode, Node< V > *nodeITSLATE, double weight) |
|
void | setHead (int index) |
|
void | removeNode (size_t index) |
|
std::vector< Node< V > * > | Dijkstra (Node< V > *from, Node< V > *find) |
|
std::vector< std::vector< double > > | getAdjacencyList () |
|
std::vector< Node< V > * > | getAdj (Node< V > *next) |
|
std::vector< Node< V > * > | getNodes () |
|
| Graph () |
|
| ~Graph () |
|
Definition at line 17 of file Graph.hpp.
◆ pair
◆ Graph()
◆ ~Graph()
◆ addConnection() [1/2]
Add a connection between two nodes
- Parameters
-
Definition at line 277 of file Graph.cpp.
◆ addConnection() [2/2]
add a weight between nodes
- Parameters
-
one | the first node |
two | the second node |
weight | the weight to put between them |
Definition at line 267 of file Graph.cpp.
◆ addNode() [1/5]
Add a node to the graph
- Parameters
-
newNode | a new node to add to the graph |
Definition at line 102 of file Graph.cpp.
◆ addNode() [2/5]
Add a node with a connection
- Parameters
-
nextNode | the node to add |
nodeITSLATE | a node to add a connection to |
Definition at line 132 of file Graph.cpp.
◆ addNode() [3/5]
Add a node with a weight to the graph
- Parameters
-
nextNode | the node to add |
nodeITSLATE | the node to connect to |
weight | the weight between those vertices |
Definition at line 282 of file Graph.cpp.
◆ addNode() [4/5]
Add a node
- Parameters
-
Definition at line 127 of file Graph.cpp.
◆ addNode() [5/5]
Adds a node with adjacent nodes all with the same weight
- Parameters
-
nextNode | the node to add |
adjacentNodes | the nodes to make a connect for |
weight | the weight for all the edges |
Definition at line 111 of file Graph.cpp.
◆ contains()
Returns true if the graph containes a node
- Parameters
-
node | the node to determine if it's inside |
listOfNodes | the list of nodes to check against |
- Returns
- whether node is in the list of nodes
Definition at line 87 of file Graph.cpp.
◆ Dijkstra()
Dijkstra's algorithm
- Parameters
-
from | the node that you start at |
find | the node we want to get to |
- Returns
- a path for the nodes
Definition at line 191 of file Graph.cpp.
◆ getAdj()
Get the adjacent nodes of a node
- Parameters
-
next | the node to get its' connected nodes |
- Returns
- the adjacent nodes
Definition at line 172 of file Graph.cpp.
◆ getAdjacencyList()
std::vector< std::vector< double > > Graph< V >::getAdjacencyList |
( |
| ) |
|
get the adjaceency matrix for the graph whihc contains the weigthings
- Returns
- the matrix for the weights
Definition at line 262 of file Graph.cpp.
◆ getNodes()
- Returns
- All the nodes
Definition at line 97 of file Graph.cpp.
◆ numVisited()
get the number of nodes we have visited
- Parameters
-
listOfBools | list of bools to combine |
- Returns
- the number of nodes visitied
Definition at line 289 of file Graph.cpp.
◆ removeNode()
Remove a node from the graph based on index
- Parameters
-
Definition at line 390 of file Graph.cpp.
◆ resize()
resize the adjacency matrix
Definition at line 79 of file Graph.cpp.
◆ setHead()
Set the head of the graph
- Parameters
-
index | the index to become head |
Definition at line 185 of file Graph.cpp.
◆ head
◆ matrix
◆ nodeMap
◆ nodes
The documentation for this class was generated from the following files:
- /home/calebk/Documents/coding/RoombaController/src/Graph.hpp
- /home/calebk/Documents/coding/RoombaController/src/Graph.cpp