SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TNGraph::TEdgeI Class Reference

Edge iterator. Only forward iteration (operator++) is supported. More...

List of all members.

Public Member Functions

 TEdgeI ()
 TEdgeI (const TNodeI &NodeI, const TNodeI &EndNodeI, const int &EdgeN=0)
 TEdgeI (const TEdgeI &EdgeI)
TEdgeIoperator= (const TEdgeI &EdgeI)
TEdgeIoperator++ (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 node of an edge.
int GetDstNId () const
 Gets destination node of an edge.

Friends

class TNGraph

Detailed Description

Edge iterator. Only forward iteration (operator++) is supported.


Constructor & Destructor Documentation

TNGraph::TEdgeI::TEdgeI ( const TNodeI NodeI,
const TNodeI EndNodeI,
const int &  EdgeN = 0 
) [inline]
TNGraph::TEdgeI::TEdgeI ( const TEdgeI EdgeI) [inline]

Member Function Documentation

int TNGraph::TEdgeI::GetDstNId ( ) const [inline]

Gets destination node of an edge.

int TNGraph::TEdgeI::GetId ( ) const [inline]

Gets edge ID. Always returns -1 since only edges in multigraphs have explicit IDs.

int TNGraph::TEdgeI::GetSrcNId ( ) const [inline]

Gets the source node of an edge.

TEdgeI& TNGraph::TEdgeI::operator++ ( int  ) [inline]

Increment iterator.

bool TNGraph::TEdgeI::operator< ( const TEdgeI EdgeI) const [inline]
TEdgeI& TNGraph::TEdgeI::operator= ( const TEdgeI EdgeI) [inline]
bool TNGraph::TEdgeI::operator== ( const TEdgeI EdgeI) const [inline]

Friends And Related Function Documentation

friend class TNGraph [friend]

The documentation for this class was generated from the following file: