libDAI
|
Represents a rooted tree, implemented as a vector of directed edges. More...
#include <dai/weightedgraph.h>
Public Member Functions | |
RootedTree () | |
Default constructor. More... | |
RootedTree (const GraphEL &T, size_t Root) | |
Constructs a rooted tree from a tree and a root. More... | |
Represents a rooted tree, implemented as a vector of directed edges.
By convention, the edges are stored such that they point away from the root and such that edges nearer to the root come before edges farther away from the root.
|
inline |
Default constructor.
dai::RootedTree::RootedTree | ( | const GraphEL & | T, |
size_t | Root | ||
) |
Constructs a rooted tree from a tree and a root.