
#include <Beobot/Graph.H>
Collaboration diagram for Graph:

Definition at line 50 of file Graph.H.
Public Member Functions | |
Constructor, assigment and destructor | |
| Graph () | |
| Constructor: generate a blank graph. | |
| Graph (std::vector< rutz::shared_ptr< Node > > nodes, std::vector< rutz::shared_ptr< Edge > > edges) | |
| Constructor: generate a graph with edges. | |
| ~Graph () | |
| Destructor. | |
| void | addNode (rutz::shared_ptr< Node >) |
| add edges and nodes | |
| void | addEdge (rutz::shared_ptr< Edge >) |
Access functions | |
| uint | getNumNode () |
| get node and edge size | |
| uint | getNumEdge () |
| rutz::shared_ptr< Node > | getNode (uint index) |
| get node or edge of the passed in index | |
| rutz::shared_ptr< Edge > | getEdge (uint index) |
Compute functions | |
| void | computeAdjecencyList () |
| compute the adjecency list | |
| void | computeDistances () |
| compute all the shortcuts for shortest-distance related operations | |
| float | getDistance (uint a, uint b) |
| float | getMaxDistance () |
| rutz::shared_ptr< Edge > | getEdge () |
| get edge where the point is at | |
|
|
Constructor: generate a blank graph.
|
|
||||||||||||
|
Constructor: generate a graph with edges.
Definition at line 53 of file Graph.C. References i. |
|
|
Destructor.
|
|
|
add edges and nodes
|
|
|
compute the adjecency list
|
|
|
compute all the shortcuts for shortest-distance related operations
Definition at line 108 of file Graph.C. References getDistance(), i, Image< T >::resize(), and Image< T >::setVal(). |
|
||||||||||||
|
get the shortest distance from A to B using Dijkstra shortest-path algorithm Definition at line 132 of file Graph.C. Referenced by computeDistances(). |
|
|
get edge where the point is at
|
|
|
get the maximum distance of any 2 points in the map return -1.0F if the graph is unconnected Definition at line 203 of file Graph.C. References getMinMax(), rutz::max(), and rutz::min(). |
|
|
get node or edge of the passed in index
Definition at line 145 of file Graph.H. References ASSERT. |
|
|
get node and edge size
|
1.4.4