SNAP Library, User Reference
2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
|
Public Member Functions | |
TTree () | |
TTree (const TTree &Tree) | |
TTree (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm="") |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TTree & | operator= (const TTree &Tree) |
bool | operator== (const TTree &Tree) const |
bool | operator< (const TTree &Tree) const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
int | GetMemUsed () const |
void | Clr () |
int | AddNode (const int &ParentNodeId, const TVal &NodeVal=TVal()) |
int | AddRoot (const TVal &NodeVal=TVal()) |
int | GetNodes () const |
void | GetNodeIdV (TIntV &NodeIdV, const int &NodeId=0) |
int | GetParentNodeId (const int &NodeId) const |
int | GetChildren (const int &NodeId) const |
int | GetChildNodeId (const int &NodeId, const int &ChildN) const |
TVal & | GetNodeVal (const int &NodeId) |
void | GenRandomTree (const int &Nodes, TRnd &Rnd=TRnd()) |
void | DelNode (const int &NodeId) |
void | CopyTree (const int &SrcNodeId, TTree &DstTree, const int &DstParentNodeId=-1) |
void | WrTree (const int &NodeId=0, const int &Lev=0) |
int TTree< TVal >::AddNode | ( | const int & | ParentNodeId, |
const TVal & | NodeVal = TVal() |
||
) | [inline] |
void TTree< TVal >::CopyTree | ( | const int & | SrcNodeId, |
TTree< TVal > & | DstTree, | ||
const int & | DstParentNodeId = -1 |
||
) |
void TTree< TVal >::GenRandomTree | ( | const int & | Nodes, |
TRnd & | Rnd = TRnd() |
||
) |
int TTree< TVal >::GetChildNodeId | ( | const int & | NodeId, |
const int & | ChildN | ||
) | const [inline] |
int TTree< TVal >::GetChildren | ( | const int & | NodeId | ) | const [inline] |
int TTree< TVal >::GetMemUsed | ( | ) | const [inline] |
void TTree< TVal >::GetNodeIdV | ( | TIntV & | NodeIdV, |
const int & | NodeId = 0 |
||
) |
TVal& TTree< TVal >::GetNodeVal | ( | const int & | NodeId | ) | [inline] |
int TTree< TVal >::GetParentNodeId | ( | const int & | NodeId | ) | const [inline] |
int TTree< TVal >::GetPrimHashCd | ( | ) | const [inline] |
int TTree< TVal >::GetSecHashCd | ( | ) | const [inline] |