SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Edge iterator. Only forward iteration (operator++) is supported. More...
#include <graphmp.h>
Public Member Functions | |
TEdgeI () | |
TEdgeI (const TNodeI &NodeI, const TNodeI &EndNodeI, const int &EdgeN=0) | |
TEdgeI (const TEdgeI &EdgeI) | |
TEdgeI & | operator= (const TEdgeI &EdgeI) |
TEdgeI & | operator++ (int) |
Increment iterator. More... | |
bool | operator< (const TEdgeI &EdgeI) const |
bool | operator== (const TEdgeI &EdgeI) const |
int | GetId () const |
Gets edge ID. Always returns -1 since only edges in multigraphs have explicit IDs. More... | |
int | GetSrcNId () const |
Gets the source node of an edge. More... | |
int | GetDstNId () const |
Gets destination node of an edge. More... | |
Private Attributes | |
TNodeI | CurNode |
TNodeI | EndNode |
int | CurEdge |
Friends | |
class | TNGraphMP |
Edge iterator. Only forward iteration (operator++) is supported.
|
inline |
|
inline |
Gets destination node of an edge.
Definition at line 121 of file graphmp.h.
References CurEdge, CurNode, and TNGraphMP::TNodeI::GetOutNId().
Referenced by TNGraphMP::AddEdge(), and TTable::GetEdgeTablePN().
|
inline |
|
inline |
Gets the source node of an edge.
Definition at line 119 of file graphmp.h.
References CurNode, and TNGraphMP::TNodeI::GetId().
Referenced by TNGraphMP::AddEdge(), and TTable::GetEdgeTablePN().
|
inline |
Increment iterator.
Definition at line 112 of file graphmp.h.
References CurEdge, CurNode, EndNode, and TNGraphMP::TNodeI::GetOutDeg().
|
inline |
|
inline |
|
private |
Definition at line 105 of file graphmp.h.
Referenced by GetDstNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 104 of file graphmp.h.
Referenced by GetDstNId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 104 of file graphmp.h.
Referenced by operator++(), and operator=().