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

SmartGraphBase Class Reference

#include <lemon/smart_graph.h>

List of all members.


Detailed Description

Base of SmartGraph


Public Member Functions

int nodeNum () const
 Number of nodes.
int edgeNum () const
 Number of edges.
int maxId (Node) const
 Maximum node ID.
int maxId (Edge) const
 Maximum edge ID.

Static Public Member Functions

static int id (Node v)
 Node ID.
static int id (Edge e)
 Edge ID.


Member Function Documentation

int maxId Node   )  const [inline]
 

Maximum node ID.

See also:
id(Node)

int maxId Edge   )  const [inline]
 

Maximum edge ID.

See also:
id(Edge)

static int id Node  v  )  [inline, static]
 

The ID of a valid Node is a nonnegative integer not greater than maxId(Node). The range of the ID's is not surely continuous and the greatest node ID can be actually less then maxId(Node).

The ID of the INVALID node is -1.

Returns:
The ID of the node v.

static int id Edge  e  )  [inline, static]
 

The ID of a valid Edge is a nonnegative integer not greater than maxId(Edge). The range of the ID's is not surely continuous and the greatest edge ID can be actually less then maxId(Edge).

The ID of the INVALID edge is -1.

Returns:
The ID of the edge e.


The documentation for this class was generated from the following file:
Generated on Sat Aug 27 14:16:13 2005 for LEMON by  doxygen 1.4.4