SNAP Library 3.0, Developer Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Edge iterator. Only forward iteration (operator++) is supported. More...
#include <graph.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 |
Returns edge ID. Always returns -1 since only edges in multigraphs have explicit IDs. More... | |
int | GetSrcNId () const |
Returns the source node of the edge. More... | |
int | GetDstNId () const |
Returns the destination node of the edge. More... | |
Private Attributes | |
TNodeI | CurNode |
TNodeI | EndNode |
int | CurEdge |
Friends | |
class | TNGraph |
Edge iterator. Only forward iteration (operator++) is supported.
|
inline |
|
inline |
Returns the destination node of the edge.
Definition at line 405 of file graph.h.
References CurEdge, CurNode, and TNGraph::TNodeI::GetOutNId().
Referenced by TNGraph::AddEdge().
|
inline |
|
inline |
Returns the source node of the edge.
Definition at line 403 of file graph.h.
References CurNode, and TNGraph::TNodeI::GetId().
Referenced by TNGraph::AddEdge().
|
inline |
Increment iterator.
Definition at line 396 of file graph.h.
References CurEdge, CurNode, EndNode, and TNGraph::TNodeI::GetOutDeg().
|
inline |
|
inline |
|
private |
Definition at line 389 of file graph.h.
Referenced by GetDstNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 388 of file graph.h.
Referenced by GetDstNId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 388 of file graph.h.
Referenced by operator++(), and operator=().