HLIBpro  2.0
Public Member Functions | List of all members
TGraph::TIterator Class Reference

Class for iterating through adjacent nodes.

#include <TGraph.hh>

Public Member Functions

 TIterator (const TGraph *graph, const idx_t pos, const idx_t end_pos)
 
bool eol () const
 signal end of list
 
void operator++ ()
 iterate (prefix/postfix)
 
node_t operator() () const
 access iterated data
 
idx_t position () const
 return current iterator position
 
weight_t edge_weight () const
 return edge weight associated with edge to neighbour
 

Constructor & Destructor Documentation

TIterator ( const TGraph graph,
const idx_t  pos,
const idx_t  end_pos 
)
inline

ctor: init. iterator