This class describes the interface of iterable undirected graphs. It extends IterableDigraphComponent with the core iterable interface of undirected graphs. This concept is part of the Graph concept.
#include <lemon/concepts/graph_components.h>
Class Based Iteration | |
typedef GraphItemIt< Graph, Edge > | EdgeIt |
This iterator goes through each edge. More... | |
typedef GraphIncIt< Graph, Edge, Node, 'e'> | IncEdgeIt |
This iterator goes trough the incident edges of a node. More... | |
Node | baseNode (const IncEdgeIt &) const |
The base node of the iterator. More... | |
Node | runningNode (const IncEdgeIt &) const |
The running node of the iterator. More... | |
Public Member Functions | |
Base Iteration | |
This interface provides functions for iteration on edges. | |
void | first (Edge &) const |
Return the first edge. More... | |
void | next (Edge &) const |
Return the next edge. More... | |
void | firstInc (Edge &, bool &, const Node &) const |
Return the first edge incident to the given node. More... | |
void | nextInc (Edge &, bool &) const |
Gives back the next of the edges from the given node. More... | |
Public Member Functions inherited from IterableDigraphComponent< BAS > | |
void | first (Node &) const |
Return the first node. More... | |
void | next (Node &) const |
Return the next node. More... | |
void | first (Arc &) const |
Return the first arc. More... | |
void | next (Arc &) const |
Return the next arc. More... | |
void | firstIn (Arc &, const Node &) const |
Return the first arc incoming to the given node. More... | |
void | nextIn (Arc &) const |
Return the next arc incoming to the given node. More... | |
void | firstOut (Arc &, const Node &) const |
Return the first arc outgoing form the given node. More... | |
void | nextOut (Arc &) const |
Return the next arc outgoing form the given node. More... | |
Node | baseNode (const InArcIt &) const |
The base node of the iterator. More... | |
Node | runningNode (const InArcIt &) const |
The running node of the iterator. More... | |
Node | baseNode (const OutArcIt &) const |
The base node of the iterator. More... | |
Node | runningNode (const OutArcIt &) const |
The running node of the iterator. More... | |
typedef GraphItemIt<Graph, Edge> EdgeIt |
This iterator goes through each edge.
typedef GraphIncIt<Graph, Edge, Node, 'e'> IncEdgeIt |
This iterator goes trough the incident edges of a certain node of a graph.
|
inline |
This function gives back the first edge in the iteration order.
|
inline |
This function gives back the next edge in the iteration order.
|
inline |
This function gives back the first edge incident to the given node. The bool parameter gives back the direction for which the source node of the directed arc representing the edge is the given node.
|
inline |
This function gives back the next edge incident to the given node. The bool parameter should be used as firstInc()
use it.
|
inline |
This function gives back the base node of the iterator.
|
inline |
This function gives back the running node of the iterator.