BaseUGraphComponent Class Reference


Detailed Description

This class provides the minimal set of features needed for an undirected graph structure. All undirected graph concepts have to be conform to this base graph. It just provides types for nodes, edges and undirected edges and functions to get the source and the target of the edges and undirected edges, conversion from edges to undirected edges and function to get both direction of the undirected edges. #include <lemon/concepts/graph_components.h>

Inheritance diagram for BaseUGraphComponent:

Inheritance graph
[legend]

List of all members.

Classes

class  UEdge
 Undirected edge class of the graph. More...

Public Member Functions

bool direction (const Edge &) const
 Returns the direction of the edge.
Edge direct (const UEdge &, bool) const
 Returns the directed edge.
Edge direct (const UEdge &, const Node &) const
 Returns the directed edge.
Edge oppositeEdge (const Edge &) const
 Returns the opposite edge.
Node target (const UEdge &) const
 Gives back the target node of an undirected edge.
Node source (const UEdge &) const
 Gives back the source node of an undirected edge.


Member Function Documentation

bool direction ( const Edge  )  const [inline]

Returns the direction of the edge. Each edge represents an undirected edge with a direction. It gives back the direction.

Edge direct ( const UEdge ,
bool   
) const [inline]

Returns the directed edge from its direction and the represented undirected edge.

Edge direct ( const UEdge ,
const Node  
) const [inline]

Returns the directed edge from its source and the represented undirected edge.

Edge oppositeEdge ( const Edge  )  const [inline]

Returns the opposite edge. It is the edge representing the same undirected edge and has opposite direction.

Node target ( const UEdge  )  const [inline]

Gives back the target node of an undirected edge. The name target is a little confusing because the undirected edge does not have target but it just means that one of the end node.

Node source ( const UEdge  )  const [inline]

Gives back the source node of an undirected edge. The name source is a little confusing because the undirected edge does not have source but it just means that one of the end node.


Generated on Thu Jun 4 04:06:49 2009 for LEMON by  doxygen 1.5.9