|
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
|
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. | |
| 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. | |
| int | GetSrcNId () const |
| Gets the source of an edge. Since the graph is undirected this is the node with smaller ID of the edge endpoints. | |
| int | GetDstNId () const |
| Gets destination of an edge. Since the graph is undirected this is the node with greater ID of the edge endpoints. | |
Private Attributes | |
| TNodeI | CurNode |
| TNodeI | EndNode |
| int | CurEdge |
Friends | |
| class | TUNGraph |
Edge iterator. Only forward iteration (operator++) is supported.
| TUNGraph::TEdgeI::TEdgeI | ( | ) | [inline] |
| TUNGraph::TEdgeI::TEdgeI | ( | const TNodeI & | NodeI, |
| const TNodeI & | EndNodeI, | ||
| const int & | EdgeN = 0 |
||
| ) | [inline] |
| TUNGraph::TEdgeI::TEdgeI | ( | const TEdgeI & | EdgeI | ) | [inline] |
| int TUNGraph::TEdgeI::GetDstNId | ( | ) | const [inline] |
| int TUNGraph::TEdgeI::GetId | ( | ) | const [inline] |
| int TUNGraph::TEdgeI::GetSrcNId | ( | ) | const [inline] |
| TEdgeI& TUNGraph::TEdgeI::operator++ | ( | int | ) | [inline] |
| bool TUNGraph::TEdgeI::operator< | ( | const TEdgeI & | EdgeI | ) | const [inline] |
| bool TUNGraph::TEdgeI::operator== | ( | const TEdgeI & | EdgeI | ) | const [inline] |
int TUNGraph::TEdgeI::CurEdge [private] |
TNodeI TUNGraph::TEdgeI::CurNode [private] |
TNodeI TUNGraph::TEdgeI::EndNode [private] |