#include <tree.h>
List of all members.
Public Member Functions |
| Tree (Array< int > const &NodesPairs, bool Directed=false) |
| Size(NodesPairs)/2 == number of edges.
|
| ~Tree () |
void | Reset (Array< int > const &NodesPairs, bool Directed=false) |
| Re-initialize the tree with a new set of edges.
|
void | DelEdge (int LeftNodeID, int RightNodeID) |
| Remove an edge from current tree.
|
size_t | nEdges () const |
| Return the number of edges (size) of this tree (graph)
|
size_t | GetEdge (int LeftNodeID, int RightNodeID) const |
| Return the edge id corresponding to nodes LeftNodeID and RightNodeID.
|
void | GetNodes (size_t i, int &LeftNodeID, int &RightNodeID) const |
| Return the left and right nodes of an edge (i)
|
void | ShortPath (size_t FromNodeID, size_t ToNodeID, Array< int > &Path) |
| Find the shortest path from FromNodeID to ToNodeID.
|
void | GetClusters (Array< Array< int > > &Clusters, bool Strong=true) const |
void | WriteDOT (char const *FileKey) const |
void | operator= (Tree const &Other) |
| Assignment operator.
|
Constructor & Destructor Documentation
Size(NodesPairs)/2 == number of edges.
Member Function Documentation
Remove an edge from current tree.
Return the edge id corresponding to nodes LeftNodeID and RightNodeID.
Return the left and right nodes of an edge (i)
Return the number of edges (size) of this tree (graph)
void Util::Tree::operator= |
( |
Tree const & |
Other | ) |
[inline] |
Re-initialize the tree with a new set of edges.
Find the shortest path from FromNodeID to ToNodeID.
The documentation for this class was generated from the following file:
- /home/dorival/mechsys/lib/util/tree.h