11 while (XmlLx.
TagNm==
"link") {
12 TStr Str1, Val1, Str2, Val2;
13 XmlLx.
GetArg(0, Str1, Val1); XmlLx.
GetArg(1, Str2, Val2);
14 IAssert(Str1==
"source" && Str2==
"target");
39 while (XmlLx.
TagNm==
"link") {
40 TStr Str1, Val1, Str2, Val2;
41 XmlLx.
GetArg(0, Str1, Val1); XmlLx.
GetArg(1, Str2, Val2);
42 IAssert(Str1==
"source" && Str2==
"target");
void GetArg(const int &ArgN, TStr &ArgNm, TStr &ArgVal) const
static PNGraph New()
Static constructor that returns a pointer to the graph. Call: PNGraph Graph = TNGraph::New().
int GetKeyId(const TKey &Key) const
static bool IsZipFNm(const TStr &FNm)
Check whether the file extension of FNm is that of a compressed file (.gz, .7z, .rar, .zip, .cab, .arj. bzip2).
int AddNode(int NId=-1)
Adds a node of ID NId to the graph.
static PSIn New(const TStr &FNm)
TVec< PNGraph > LoadDyNetGraphV(const TStr &FNm)
For more info see ORA Network Analysis Data (http://www.casos.cs.cmu.edu/computational_tools/data2.php)
static PSIn New(const TStr &FNm)
int AddEdge(const int &SrcNId, const int &DstNId)
Adds an edge from node IDs SrcNId to node DstNId to the graph.
bool IsNode(const int &NId) const
Tests whether ID NId is a node.
TPt< TNGraph > PNGraph
Pointer to a directed graph (TNGraph)
int AddKey(const TKey &Key)
PNGraph LoadDyNet(const TStr &FNm)
For more info see ORA Network Analysis Data (http://www.casos.cs.cmu.edu/computational_tools/data2.php)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
Vector is a sequence TVal objects representing an array that can change in size.