|
typedef Graph< NodeT, WeightT > | GraphType |
|
typedef NodeT | NodeType |
|
typedef WeightT | NodeWeightType |
|
typedef std::map< NodeT, WeightT > | NodeValuesType |
|
typedef set< NodeT > | NodeListType |
|
typedef Edge< NodeT, WeightT > | EdgeType |
|
typedef WeightT | EdgeWeightType |
|
typedef std::vector< Edge< NodeT, WeightT > > | EdgeListType |
|
typedef std::vector< size_t > | NodeEdgesType |
|
typedef std::map< NodeT, NodeEdgesType > | NodeEdgeListType |
|
typedef void | parentClass |
|
typedef void(BaseObject::* | voidMemberFunc) () |
|
|
| Graph () |
| Default constructor.
|
|
| Graph (const Graph &rhs) |
| Copy constructor.
|
|
Graph & | operator= (const Graph &rhs) |
|
void | clear () |
| Clear graph content.
|
|
void | addNode (const NodeT &ind) |
| Add a node given its index.
|
|
void | addNode (const NodeT &ind, const WeightT &val) |
| Add a node given its index and its optional value.
|
|
int | findEdge (const EdgeType &e) |
| findEdge() - Find an edge by its content - return its index
|
|
int | findEdge (const NodeT &src, const NodeT &targ) |
| findEdge() - Find an edge by its nodes - return its index
|
|
void | addEdge (const EdgeType &e, bool checkIfExists=true) |
| Add an edge to the graph. More...
|
|
void | addEdge (const NodeT src, const NodeT targ, WeightT weight=0, bool checkIfExists=true) |
| Add an edge to the graph given two nodes src and targ and an optional weight. More...
|
|
void | sortEdges (bool reverse=false) |
| Sort edges (by weight as defined by the operator < of class Edge)
|
|
GraphType | clone () |
| clone() -
|
|
size_t | getNodeNbr () |
| getNodeNbr() -
|
|
size_t | getEdgeNbr () |
| getEdgeNbr() -
|
|
void | removeNodeEdges (const NodeT node) |
| Remove all edges linked to the node nodeIndex.
|
|
void | removeEdge (const size_t index) |
| Remove an edge.
|
|
void | removeEdge (const NodeT src, const NodeT targ) |
| Find and remove an edge linking src to targ.
|
|
void | removeEdge (const EdgeType &edge) |
| Remove a given edge.
|
|
void | removeHighEdges (EdgeWeightType EdgeThreshold) |
| removeHighEdges() - remove edges whose weight are greater then some threshold More...
|
|
void | removeLowEdges (EdgeWeightType EdgeThreshold) |
| removeHighEdges() - remove edges whose weight are lesser then some threshold More...
|
|
NodeListType & | getNodes () |
| getNodes() - get the list of nodes More...
|
|
EdgeListType & | getEdges () |
| getEdges() - Get a vector containing the graph edges More...
|
|
NodeValuesType & | getNodeValues () |
| getNodeValues() -
|
|
NodeEdgeListType & | getNodeEdges () |
| getNodeEdges()-
|
|
NodeEdgesType | getNodeEdges (const size_t &node) |
| getNodeEdges() - Get a map containing the edges linked to a given node
|
|
GraphType | computeMST () |
| computeMST() - Compute the Minimum Spanning Tree graph
|
|
virtual void | printSelf (ostream &os=std::cout, string s="") const |
| printSelf() -
|
|
map< NodeT, NodeT > | labelizeNodes () const |
| labelizeNodes() - Labelize the nodes. More...
|
|
| BaseObject (const char *_className, bool _register=true) |
|
| BaseObject (const BaseObject &rhs, bool _register=true) |
|
BaseObject & | operator= (const BaseObject &rhs) |
|
Core * | getCoreInstance () |
|
virtual const char * | getInfoString (const char *="") const |
|
virtual const char * | getClassName () const |
|
virtual void | setName (const char *_name) |
|
virtual const char * | getName () const |
|
virtual size_t | getAllocatedSize () const |
|