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 <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 |
Gets edge ID. Always returns -1 since only edges in multigraphs have explicit IDs. More... | |
int | GetSrcNId () const |
Gets the source ('left' side) of an edge. Since the graph is undirected this is the node with smaller ID of the edge endpoints. More... | |
int | GetDstNId () const |
Gets destination ('right' side) of an edge. Since the graph is undirected this is the node with greater ID of the edge endpoints. More... | |
int | GetLNId () const |
Gets the ID of the node on the 'left' side of the edge. More... | |
int | GetRNId () const |
Gets the ID of the node on the 'right' side of the edge. More... | |
Private Attributes | |
TNodeI | CurNode |
TNodeI | EndNode |
int | CurEdge |
Friends | |
class | TBPGraph |
Edge iterator. Only forward iteration (operator++) is supported.
|
inline |
|
inline |
Gets destination ('right' side) of an edge. Since the graph is undirected this is the node with greater ID of the edge endpoints.
Definition at line 1029 of file graph.h.
References CurEdge, CurNode, and TBPGraph::TNodeI::GetOutNId().
Referenced by TBPGraph::AddEdge(), and GetRNId().
|
inline |
|
inline |
Gets the ID of the node on the 'left' side of the edge.
Definition at line 1031 of file graph.h.
References GetSrcNId().
|
inline |
Gets the ID of the node on the 'right' side of the edge.
Definition at line 1033 of file graph.h.
References GetDstNId().
|
inline |
Gets the source ('left' side) of an edge. Since the graph is undirected this is the node with smaller ID of the edge endpoints.
Definition at line 1027 of file graph.h.
References CurNode, and TBPGraph::TNodeI::GetId().
Referenced by TBPGraph::AddEdge(), and GetLNId().
|
inline |
Increment iterator.
Definition at line 1020 of file graph.h.
References CurEdge, CurNode, EndNode, and TBPGraph::TNodeI::GetOutDeg().
|
inline |
|
inline |
|
private |
Definition at line 1013 of file graph.h.
Referenced by GetDstNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 1012 of file graph.h.
Referenced by GetDstNId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().
|
private |
Definition at line 1012 of file graph.h.
Referenced by operator++(), and operator=().