SNAP Library 2.1, User Reference
2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Node Edge Network (directed multigraph, TNEGraph with data on nodes and edges). More...
#include <network.h>
Classes | |
class | TEdge |
class | TEdgeI |
Edge iterator. Only forward iteration (operator++) is supported. More... | |
class | TNode |
class | TNodeI |
Node iterator. Only forward iteration (operator++) is supported. More... | |
Public Types | |
typedef TNodeData | TNodeDat |
typedef TEdgeData | TEdgeDat |
typedef TNodeEdgeNet < TNodeData, TEdgeData > | TNet |
typedef TPt< TNet > | PNet |
Public Member Functions | |
TNodeEdgeNet () | |
TNodeEdgeNet (const int &Nodes, const int &Edges) | |
Constructor that reserves enough memory for a network of Nodes nodes and Edges edges. | |
TNodeEdgeNet (const TNodeEdgeNet &Net) | |
TNodeEdgeNet (TSIn &SIn) | |
Constructor that loads the network from a (binary) stream SIn. | |
virtual | ~TNodeEdgeNet () |
virtual void | Save (TSOut &SOut) const |
Saves the network to a (binary) stream SOut. | |
bool | HasFlag (const TGraphFlag &Flag) const |
Allows for run-time checking the type of the network (see the TGraphFlag for flags). | |
TNodeEdgeNet & | operator= (const TNodeEdgeNet &Net) |
int | GetNodes () const |
Returns the number of nodes in the network. | |
int | AddNode (int NId=-1) |
Adds a node of ID NId to the network. | |
int | AddNode (int NId, const TNodeData &NodeDat) |
Adds node data to node with ID NId. | |
int | AddNode (const TNodeI &NodeId) |
Adds a node NodeId and its node data to the network. | |
void | DelNode (const int &NId) |
Deletes node of ID NId from the network. | |
void | DelNode (const TNode &NodeI) |
Deletes node of ID NodeI.GetId() from the network. | |
bool | IsNode (const int &NId) const |
Tests whether ID NId is a node. | |
TNodeI | BegNI () const |
Returns an iterator referring to the first node in the network. | |
TNodeI | EndNI () const |
Returns an iterator referring to the past-the-end node in the network. | |
TNodeI | GetNI (const int &NId) const |
Returns an iterator referring to the node of ID NId in the network. | |
void | SetNDat (const int &NId, const TNodeData &NodeDat) |
Sets node data for the node of ID NId in the network. | |
TNodeData & | GetNDat (const int &NId) |
Returns node data for the node of ID NId in the network. | |
const TNodeData & | GetNDat (const int &NId) const |
Returns node data for the node of ID NId in the network. | |
int | GetMxNId () const |
Returns the maximum id of a any node in the network. | |
int | GetEdges () const |
Returns the number of edges in the network. | |
int | GetUniqEdges (const bool &IsDir=true) const |
Returns the number of edges in the network with a unique pair of nodes. | |
int | AddEdge (const int &SrcNId, const int &DstNId, int EId=-1) |
Adds an edge between node IDs SrcNId and DstNId to the graph. | |
int | AddEdge (const int &SrcNId, const int &DstNId, int EId, const TEdgeData &EdgeDat) |
Adds an edge and edge data from node IDs SrcNId to node DstNId. | |
int | AddEdge (const TEdgeI &EdgeI) |
Adds an edge from EdgeI.GetSrcNId() to EdgeI.GetDstNId() and its edge data to the network. | |
void | DelEdge (const int &EId) |
Deletes an edge with ID EId from the network. | |
void | DelEdge (const int &SrcNId, const int &DstNId, const bool &IsDir=true) |
Deletes an edge from node IDs SrcNId to DstNId from the network. | |
bool | IsEdge (const int &EId) const |
Tests whether an edge with ID EId exists in the network. | |
bool | IsEdge (const int &SrcNId, const int &DstNId, const bool &IsDir=true) const |
Tests whether an edge from node IDs SrcNId to DstNId exists in the network. | |
bool | IsEdge (const int &SrcNId, const int &DstNId, int &EId, const bool &IsDir=true) const |
Tests whether an edge from node IDs SrcNId to DstNId with edge ID EId exists in the network. | |
int | GetEId (const int &SrcNId, const int &DstNId) const |
TEdgeI | BegEI () const |
Returns an iterator referring to the first edge in the network. | |
TEdgeI | EndEI () const |
Returns an iterator referring to the past-the-end edge in the network. | |
TEdgeI | GetEI (const int &EId) const |
TEdgeI | GetEI (const int &SrcNId, const int &DstNId) const |
void | SetEDat (const int &EId, const TEdgeData &EdgeDat) |
Sets edge data for the edge of ID NId in the network. | |
TEdgeData & | GetEDat (const int &EId) |
Returns edge data for the edge with ID EId. | |
const TEdgeData & | GetEDat (const int &EId) const |
Returns edge data for the edge with ID EId. | |
void | SetAllEDat (const TEdgeData &EdgeDat) |
Sets edge data for all the edges in the network to EDat. | |
int | GetRndNId (TRnd &Rnd=TInt::Rnd) |
Returns an ID of a random node in the network. | |
TNodeI | GetRndNI (TRnd &Rnd=TInt::Rnd) |
Returns an interator referring to a random node in the network. | |
int | GetRndEId (TRnd &Rnd=TInt::Rnd) |
Returns an ID of a random edge in the network. | |
TEdgeI | GetRndEI (TRnd &Rnd=TInt::Rnd) |
Returns an interator referring to a random edge in the network. | |
void | GetNIdV (TIntV &NIdV) const |
Returns a vector of all node IDs in the network. | |
void | GetEIdV (TIntV &EIdV) const |
Returns a vector of all edge IDs in the network. | |
bool | Empty () const |
Tests whether the network is empty (has zero nodes). | |
void | Clr () |
Deletes all nodes and edges from the network. | |
void | Reserve (const int &Nodes, const int &Edges) |
Reserves memory for a network of Nodes nodes and Edges edges. | |
void | SortNIdById (const bool &Asc=true) |
Sorts nodes by node IDs. | |
void | SortNIdByDat (const bool &Asc=true) |
Sorts nodes by node data. | |
void | SortEIdById (const bool &Asc=true) |
Sorts edges by edge IDs. | |
void | SortEIdByDat (const bool &Asc=true) |
Sorts edges by edge data. | |
void | Defrag (const bool &OnlyNodeLinks=false) |
Defragments the network. | |
bool | IsOk (const bool &ThrowExcept=true) const |
Checks the network data structure for internal consistency. | |
Static Public Member Functions | |
static PNet | New () |
Static constructor that returns a pointer to the network. Call: TPt <TNodeEdgeNet<TNodeData, TEdgeData> > Net = TNodeEdgeNet<TNodeData, TEdgeData>::New(). | |
static PNet | Load (TSIn &SIn) |
Static constructor that loads the network from a stream SIn and returns a pointer to it. | |
Protected Attributes | |
TCRef | CRef |
TInt | MxNId |
TInt | MxEId |
THash< TInt, TNode > | NodeH |
THash< TInt, TEdge > | EdgeH |
Private Member Functions | |
TNode & | GetNode (const int &NId) |
const TNode & | GetNode (const int &NId) const |
const TNode & | GetNodeKId (const int &NodeKeyId) const |
TEdge & | GetEdge (const int &EId) |
const TEdge & | GetEdge (const int &EId) const |
const TEdge & | GetEdgeKId (const int &EdgeKeyId) const |
Friends | |
class | TPt< TNodeEdgeNet< TNodeData, TEdgeData > > |
Node Edge Network (directed multigraph, TNEGraph with data on nodes and edges).
typedef TPt<TNet> TNodeEdgeNet< TNodeData, TEdgeData >::PNet |
Reimplemented in TTimeNENet.
typedef TEdgeData TNodeEdgeNet< TNodeData, TEdgeData >::TEdgeDat |
typedef TNodeEdgeNet<TNodeData, TEdgeData> TNodeEdgeNet< TNodeData, TEdgeData >::TNet |
Reimplemented in TTimeNENet.
typedef TNodeData TNodeEdgeNet< TNodeData, TEdgeData >::TNodeDat |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeEdgeNet | ( | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeEdgeNet | ( | const int & | Nodes, |
const int & | Edges | ||
) | [inline, explicit] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeEdgeNet | ( | const TNodeEdgeNet< TNodeData, TEdgeData > & | Net | ) | [inline] |
TNodeEdgeNet< TNodeData, TEdgeData >::TNodeEdgeNet | ( | TSIn & | SIn | ) | [inline] |
virtual TNodeEdgeNet< TNodeData, TEdgeData >::~TNodeEdgeNet | ( | ) | [inline, virtual] |
int TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
int | EId = -1 |
||
) |
Adds an edge between node IDs SrcNId and DstNId to the graph.
Returns the ID of the edge being added. If EId is -1, edge ID is automatically assigned. Aborts, if an edge with ID EId already exists. Aborts, if SrcNId or DstNId are not nodes in the graph.
Definition at line 1403 of file network.h.
{ if (EId == -1) { EId = MxEId; MxEId++; } else { MxEId = TMath::Mx(EId+1, MxEId()); } IAssertR(!IsEdge(EId), TStr::Fmt("EdgeId %d already exists", EId)); IAssertR(IsNode(SrcNId) && IsNode(DstNId), TStr::Fmt("%d or %d not a node.", SrcNId, DstNId).CStr()); EdgeH.AddDat(EId, TEdge(EId, SrcNId, DstNId)); GetNode(SrcNId).OutEIdV.AddSorted(EId); GetNode(DstNId).InEIdV.AddSorted(EId); return EId; }
int TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
int | EId, | ||
const TEdgeData & | EdgeDat | ||
) |
Adds an edge and edge data from node IDs SrcNId to node DstNId.
Returns the ID of the edge being added. If EId is -1, edge ID is automatically assigned. Aborts, if an edge with ID EId already exists. Aborts, if SrcNId or DstNId are not nodes in the graph.
Definition at line 1415 of file network.h.
{ if (EId == -1) { EId = MxEId; MxEId++; } else { MxEId = TMath::Mx(EId+1, MxEId()); } IAssertR(!IsEdge(EId), TStr::Fmt("EdgeId %d already exists", EId)); IAssertR(IsNode(SrcNId) && IsNode(DstNId), TStr::Fmt("%d or %d not a node.", SrcNId, DstNId).CStr()); EdgeH.AddDat(EId, TEdge(EId, SrcNId, DstNId, EdgeDat)); GetNode(SrcNId).OutEIdV.AddSorted(EId); GetNode(DstNId).InEIdV.AddSorted(EId); return EId; }
int TNodeEdgeNet< TNodeData, TEdgeData >::AddEdge | ( | const TEdgeI & | EdgeI | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::AddNode | ( | int | NId = -1 | ) |
Adds a node of ID NId to the network.
Returns the ID of the node being added. If NId is -1, node ID is automatically assigned. Aborts, if a node with ID NId already exists.
int TNodeEdgeNet< TNodeData, TEdgeData >::AddNode | ( | int | NId, |
const TNodeData & | NodeDat | ||
) |
Adds node data to node with ID NId.
Returns the ID of the node being added. If NId is -1, node ID is automatically assigned. Aborts, if a node with ID NId already exists.
int TNodeEdgeNet< TNodeData, TEdgeData >::AddNode | ( | const TNodeI & | NodeId | ) | [inline] |
TEdgeI TNodeEdgeNet< TNodeData, TEdgeData >::BegEI | ( | ) | const [inline] |
TNodeI TNodeEdgeNet< TNodeData, TEdgeData >::BegNI | ( | ) | const [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::Clr | ( | ) | [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::Defrag | ( | const bool & | OnlyNodeLinks = false | ) |
Defragments the network.
After performing many node and edge insertions and deletions to a network, the network data structure will be fragmented in memory. This function compacts down the network data structure and frees unneeded memory.
Definition at line 1496 of file network.h.
{ for (int kid = NodeH.FFirstKeyId(); NodeH.FNextKeyId(kid);) { TNode& Node = NodeH[kid]; Node.InEIdV.Pack(); Node.OutEIdV.Pack(); } if (! OnlyNodeLinks && ! NodeH.IsKeyIdEqKeyN()) { NodeH.Defrag(); } if (! OnlyNodeLinks && ! EdgeH.IsKeyIdEqKeyN()) { EdgeH.Defrag(); } }
void TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge | ( | const int & | EId | ) |
void TNodeEdgeNet< TNodeData, TEdgeData >::DelEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
const bool & | IsDir = true |
||
) |
Deletes an edge from node IDs SrcNId to DstNId from the network.
If the edge (SrcNId, DstNId) does not exist in the network function still completes. But the function aborts if SrcNId or DstNId are not nodes in the network.
void TNodeEdgeNet< TNodeData, TEdgeData >::DelNode | ( | const int & | NId | ) |
Deletes node of ID NId from the network.
If the node of ID NId does not exist the function aborts.
Definition at line 1365 of file network.h.
{ const TNode& Node = GetNode(NId); for (int out = 0; out < Node.GetOutDeg(); out++) { const int EId = Node.GetOutEId(out); const TEdge& Edge = GetEdge(EId); IAssert(Edge.GetSrcNId() == NId); GetNode(Edge.GetDstNId()).InEIdV.DelIfIn(EId); EdgeH.DelKey(EId); } for (int in = 0; in < Node.GetInDeg(); in++) { const int EId = Node.GetInEId(in); const TEdge& Edge = GetEdge(EId); IAssert(Edge.GetDstNId() == NId); GetNode(Edge.GetSrcNId()).OutEIdV.DelIfIn(EId); EdgeH.DelKey(EId); } NodeH.DelKey(NId); }
void TNodeEdgeNet< TNodeData, TEdgeData >::DelNode | ( | const TNode & | NodeI | ) | [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::Empty | ( | ) | const [inline] |
TEdgeI TNodeEdgeNet< TNodeData, TEdgeData >::EndEI | ( | ) | const [inline] |
TNodeI TNodeEdgeNet< TNodeData, TEdgeData >::EndNI | ( | ) | const [inline] |
TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::GetEDat | ( | const int & | EId | ) | [inline] |
const TEdgeData& TNodeEdgeNet< TNodeData, TEdgeData >::GetEDat | ( | const int & | EId | ) | const [inline] |
TEdge& TNodeEdgeNet< TNodeData, TEdgeData >::GetEdge | ( | const int & | EId | ) | [inline, private] |
const TEdge& TNodeEdgeNet< TNodeData, TEdgeData >::GetEdge | ( | const int & | EId | ) | const [inline, private] |
const TEdge& TNodeEdgeNet< TNodeData, TEdgeData >::GetEdgeKId | ( | const int & | EdgeKeyId | ) | const [inline, private] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetEdges | ( | ) | const [inline] |
TEdgeI TNodeEdgeNet< TNodeData, TEdgeData >::GetEI | ( | const int & | EId | ) | const [inline] |
TEdgeI TNodeEdgeNet< TNodeData, TEdgeData >::GetEI | ( | const int & | SrcNId, |
const int & | DstNId | ||
) | const [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetEId | ( | const int & | SrcNId, |
const int & | DstNId | ||
) | const [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::GetEIdV | ( | TIntV & | EIdV | ) | const |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetMxNId | ( | ) | const [inline] |
TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat | ( | const int & | NId | ) | [inline] |
const TNodeData& TNodeEdgeNet< TNodeData, TEdgeData >::GetNDat | ( | const int & | NId | ) | const [inline] |
TNodeI TNodeEdgeNet< TNodeData, TEdgeData >::GetNI | ( | const int & | NId | ) | const [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::GetNIdV | ( | TIntV & | NIdV | ) | const |
TNode& TNodeEdgeNet< TNodeData, TEdgeData >::GetNode | ( | const int & | NId | ) | [inline, private] |
const TNode& TNodeEdgeNet< TNodeData, TEdgeData >::GetNode | ( | const int & | NId | ) | const [inline, private] |
const TNode& TNodeEdgeNet< TNodeData, TEdgeData >::GetNodeKId | ( | const int & | NodeKeyId | ) | const [inline, private] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetNodes | ( | ) | const [inline] |
TEdgeI TNodeEdgeNet< TNodeData, TEdgeData >::GetRndEI | ( | TRnd & | Rnd = TInt::Rnd | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetRndEId | ( | TRnd & | Rnd = TInt::Rnd | ) | [inline] |
TNodeI TNodeEdgeNet< TNodeData, TEdgeData >::GetRndNI | ( | TRnd & | Rnd = TInt::Rnd | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetRndNId | ( | TRnd & | Rnd = TInt::Rnd | ) | [inline] |
int TNodeEdgeNet< TNodeData, TEdgeData >::GetUniqEdges | ( | const bool & | IsDir = true | ) | const |
Returns the number of edges in the network with a unique pair of nodes.
bool TNodeEdgeNet< TNodeData, TEdgeData >::HasFlag | ( | const TGraphFlag & | Flag | ) | const |
Allows for run-time checking the type of the network (see the TGraphFlag for flags).
Definition at line 1316 of file network.h.
{ return HasGraphFlag(typename TNet, Flag); }
bool TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge | ( | const int & | EId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
const bool & | IsDir = true |
||
) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::IsEdge | ( | const int & | SrcNId, |
const int & | DstNId, | ||
int & | EId, | ||
const bool & | IsDir = true |
||
) | const |
Tests whether an edge from node IDs SrcNId to DstNId with edge ID EId exists in the network.
Definition at line 1446 of file network.h.
{ if (! IsNode(SrcNId)) { return false; } if (! IsNode(DstNId)) { return false; } const TNode& SrcNode = GetNode(SrcNId); for (int edge = 0; edge < SrcNode.GetOutDeg(); edge++) { const TEdge& Edge = GetEdge(SrcNode.GetOutEId(edge)); if (DstNId == Edge.GetDstNId()) { EId = Edge.GetId(); return true; } } if (! IsDir) { for (int edge = 0; edge < SrcNode.GetInDeg(); edge++) { const TEdge& Edge = GetEdge(SrcNode.GetInEId(edge)); if (DstNId == Edge.GetSrcNId()) { EId = Edge.GetId(); return true; } } } return false; }
bool TNodeEdgeNet< TNodeData, TEdgeData >::IsNode | ( | const int & | NId | ) | const [inline] |
bool TNodeEdgeNet< TNodeData, TEdgeData >::IsOk | ( | const bool & | ThrowExcept = true | ) | const |
Checks the network data structure for internal consistency.
For each node in the network check that its neighbors are also nodes in the network.
Definition at line 1506 of file network.h.
{ bool RetVal = true; for (int N = NodeH.FFirstKeyId(); NodeH.FNextKeyId(N); ) { const TNode& Node = NodeH[N]; if (! Node.OutEIdV.IsSorted()) { const TStr Msg = TStr::Fmt("Out-edge list of node %d is not sorted.", Node.GetId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } if (! Node.InEIdV.IsSorted()) { const TStr Msg = TStr::Fmt("In-edge list of node %d is not sorted.", Node.GetId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } // check out-edge ids int prevEId = -1; for (int e = 0; e < Node.GetOutDeg(); e++) { if (! IsEdge(Node.GetOutEId(e))) { const TStr Msg = TStr::Fmt("Out-edge id %d of node %d does not exist.", Node.GetOutEId(e), Node.GetId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } if (e > 0 && prevEId == Node.GetOutEId(e)) { const TStr Msg = TStr::Fmt("Node %d has duplidate out-edge id %d.", Node.GetId(), Node.GetOutEId(e)); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } prevEId = Node.GetOutEId(e); } // check in-edge ids prevEId = -1; for (int e = 0; e < Node.GetInDeg(); e++) { if (! IsEdge(Node.GetInEId(e))) { const TStr Msg = TStr::Fmt("Out-edge id %d of node %d does not exist.", Node.GetInEId(e), Node.GetId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } if (e > 0 && prevEId == Node.GetInEId(e)) { const TStr Msg = TStr::Fmt("Node %d has duplidate out-edge id %d.", Node.GetId(), Node.GetInEId(e)); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } prevEId = Node.GetInEId(e); } } for (int E = EdgeH.FFirstKeyId(); EdgeH.FNextKeyId(E); ) { const TEdge& Edge = EdgeH[E]; if (! IsNode(Edge.GetSrcNId())) { const TStr Msg = TStr::Fmt("Edge %d source node %d does not exist.", Edge.GetId(), Edge.GetSrcNId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } if (! IsNode(Edge.GetDstNId())) { const TStr Msg = TStr::Fmt("Edge %d destination node %d does not exist.", Edge.GetId(), Edge.GetDstNId()); if (ThrowExcept) { EAssertR(false, Msg); } else { ErrNotify(Msg.CStr()); } RetVal=false; } } return RetVal; }
static PNet TNodeEdgeNet< TNodeData, TEdgeData >::Load | ( | TSIn & | SIn | ) | [inline, static] |
Static constructor that loads the network from a stream SIn and returns a pointer to it.
Reimplemented in TTimeNENet.
static PNet TNodeEdgeNet< TNodeData, TEdgeData >::New | ( | ) | [inline, static] |
Static constructor that returns a pointer to the network. Call: TPt <TNodeEdgeNet<TNodeData, TEdgeData> > Net = TNodeEdgeNet<TNodeData, TEdgeData>::New().
Reimplemented in TTimeNENet.
TNodeEdgeNet& TNodeEdgeNet< TNodeData, TEdgeData >::operator= | ( | const TNodeEdgeNet< TNodeData, TEdgeData > & | Net | ) | [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::Reserve | ( | const int & | Nodes, |
const int & | Edges | ||
) | [inline] |
virtual void TNodeEdgeNet< TNodeData, TEdgeData >::Save | ( | TSOut & | SOut | ) | const [inline, virtual] |
void TNodeEdgeNet< TNodeData, TEdgeData >::SetAllEDat | ( | const TEdgeData & | EdgeDat | ) |
void TNodeEdgeNet< TNodeData, TEdgeData >::SetEDat | ( | const int & | EId, |
const TEdgeData & | EdgeDat | ||
) |
void TNodeEdgeNet< TNodeData, TEdgeData >::SetNDat | ( | const int & | NId, |
const TNodeData & | NodeDat | ||
) |
void TNodeEdgeNet< TNodeData, TEdgeData >::SortEIdByDat | ( | const bool & | Asc = true | ) | [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::SortEIdById | ( | const bool & | Asc = true | ) | [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::SortNIdByDat | ( | const bool & | Asc = true | ) | [inline] |
void TNodeEdgeNet< TNodeData, TEdgeData >::SortNIdById | ( | const bool & | Asc = true | ) | [inline] |
friend class TPt< TNodeEdgeNet< TNodeData, TEdgeData > > [friend] |
TCRef TNodeEdgeNet< TNodeData, TEdgeData >::CRef [protected] |
THash<TInt, TEdge> TNodeEdgeNet< TNodeData, TEdgeData >::EdgeH [protected] |
TInt TNodeEdgeNet< TNodeData, TEdgeData >::MxEId [protected] |
TInt TNodeEdgeNet< TNodeData, TEdgeData >::MxNId [protected] |
THash<TInt, TNode> TNodeEdgeNet< TNodeData, TEdgeData >::NodeH [protected] |