Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StaticSymGraph::OutEdgeIt Class Reference

#include <lemon/concept/sym_graph.h>

Inheritance diagram for StaticSymGraph::OutEdgeIt:

Inheritance graph
[legend]
Collaboration diagram for StaticSymGraph::OutEdgeIt:

Collaboration graph
[legend]
List of all members.

Detailed Description

This iterator goes trough the outgoing edges of a certain node of a graph. Its usage is quite simple, for example you can count the number of outgoing edges of a node n in graph g of type Graph as follows.
          int count=0;
          for (Graph::OutEdgeIt e(g, n); e!=INVALID; ++e) ++count;

Definition at line 251 of file sym_graph.h.

Public Member Functions

 OutEdgeIt ()
 Default constructor.
 OutEdgeIt (const OutEdgeIt &)
 Copy constructor.
 OutEdgeIt (Invalid)
 Initialize the iterator to be invalid.
 OutEdgeIt (const StaticSymGraph &g, const Node &n)
 This constructor sets the iterator to first outgoing edge.
 OutEdgeIt (const StaticSymGraph &g, const Edge &e)
 Edge -> OutEdgeIt conversion.
OutEdgeItoperator++ ()
 Next outgoing edge.


Constructor & Destructor Documentation

OutEdgeIt  )  [inline]
 

Warning:
The default constructor sets the iterator to an undefined value.

Definition at line 257 of file sym_graph.h.

OutEdgeIt const OutEdgeIt  )  [inline]
 

Copy constructor.

Definition at line 262 of file sym_graph.h.

OutEdgeIt Invalid   )  [inline]
 

Initialize the iterator to be invalid.

Definition at line 267 of file sym_graph.h.

OutEdgeIt const StaticSymGraph g,
const Node n
[inline]
 

This constructor set the iterator to the first outgoing edge of node

Parameters:
n the node
g the graph

Definition at line 274 of file sym_graph.h.

OutEdgeIt const StaticSymGraph g,
const Edge e
[inline]
 

Sets the iterator to the value of the trivial iterator e. This feature necessitates that each time we iterate the edge-set, the iteration order is the same.

Definition at line 280 of file sym_graph.h.


Member Function Documentation

OutEdgeIt& operator++  )  [inline]
 

Assign the iterator to the next outgoing edge of the corresponding node.

Definition at line 285 of file sym_graph.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 15:02:43 2005 for LEMON by  doxygen 1.4.1