| 
    SNAP Library 2.0, Developer Reference
    2013-05-13 16:33:57
    
   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 THashIter &EdgeHIter, const TNEGraph *GraphPt) | |
| 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.   | |
| int | GetSrcNId () const | 
| Gets the source of an edge.   | |
| int | GetDstNId () const | 
| Gets destination of an edge.   | |
Private Types | |
| typedef THash< TInt, TEdge >::TIter | THashIter | 
Private Attributes | |
| THashIter | EdgeHI | 
| const TNEGraph * | Graph | 
Friends | |
| class | TNEGraph | 
Edge iterator. Only forward iteration (operator++) is supported.
typedef THash<TInt, TEdge>::TIter TNEGraph::TEdgeI::THashIter [private] | 
        
| TNEGraph::TEdgeI::TEdgeI | ( | ) |  [inline] | 
        
| TNEGraph::TEdgeI::TEdgeI | ( | const THashIter & | EdgeHIter, | 
| const TNEGraph * | GraphPt | ||
| ) |  [inline] | 
        
| TNEGraph::TEdgeI::TEdgeI | ( | const TEdgeI & | EdgeI | ) |  [inline] | 
        
| int TNEGraph::TEdgeI::GetDstNId | ( | ) |  const [inline] | 
        
Gets destination of an edge.
Definition at line 673 of file graph.h.
References EdgeHI.
Referenced by TNEGraph::AddEdge().
{ return EdgeHI.GetDat().GetDstNId(); }

| int TNEGraph::TEdgeI::GetId | ( | ) |  const [inline] | 
        
Gets edge ID.
Definition at line 669 of file graph.h.
References EdgeHI.
Referenced by TNEGraph::AddEdge().
{ return EdgeHI.GetDat().GetId(); }

| int TNEGraph::TEdgeI::GetSrcNId | ( | ) |  const [inline] | 
        
Gets the source of an edge.
Definition at line 671 of file graph.h.
References EdgeHI.
Referenced by TNEGraph::AddEdge().
{ return EdgeHI.GetDat().GetSrcNId(); }

| TEdgeI& TNEGraph::TEdgeI::operator++ | ( | int | ) |  [inline] | 
        
| bool TNEGraph::TEdgeI::operator< | ( | const TEdgeI & | EdgeI | ) |  const [inline] | 
        
| bool TNEGraph::TEdgeI::operator== | ( | const TEdgeI & | EdgeI | ) |  const [inline] | 
        
THashIter TNEGraph::TEdgeI::EdgeHI [private] | 
        
Definition at line 657 of file graph.h.
Referenced by GetDstNId(), GetId(), GetSrcNId(), operator++(), operator<(), operator=(), and operator==().
const TNEGraph* TNEGraph::TEdgeI::Graph [private] | 
        
Definition at line 658 of file graph.h.
Referenced by operator=().