class NstVertexSet: public NstVertex

Set of vertices

Inheritance:


Public Fields

[more]NstVertexList vertexset
List of vertices represented by this vertex set.

Public Methods

[more] NstVertexSet()
Creates an empty set.
[more] NstVertexSet(int flag)
Creates an empty set with initialized internal color.
[more] NstVertexSet(int flag, const NstVertexList &new_list)
Creates a set of vertices from a list of vertices, and initializes the internal color
[more]void copy(const NstVertexSet& s, int deep = 0)
Copy a vertexset. No recursive copy available.
[more]NstVertex* clone(int deep = 0)
Clones a set. No recursive cloning available.
[more]void print(ostream &s) const
Output method (used by operator <<).
[more]Nst_Vertex_Type type() const
Returns the type of vertex: here NST_VERTEX_SET.


Inherited from NstVertex:

Public Fields

oNstEdgeList in
oNstEdgeList out
oint color
oint tag[10]

Public Methods

oint label() const


Documentation

Set of vertices. A set of vertices is a vertex, but it represents several vertices.

This class is useful to easily manipulate graphs that are built by merging several vertices into one. For example, each vertex can represent a strongly component of a graph, or all vertices that belong to a given set, etc. Each set has an internal color. See also the class NstGraph for more details.

oNstVertexList vertexset
List of vertices represented by this vertex set.

o NstVertexSet()
Creates an empty set.

o NstVertexSet(int flag)
Creates an empty set with initialized internal color.

o NstVertexSet(int flag, const NstVertexList &new_list)
Creates a set of vertices from a list of vertices, and initializes the internal color.

ovoid copy(const NstVertexSet& s, int deep = 0)
Copy a vertexset. No recursive copy available.

oNstVertex* clone(int deep = 0)
Clones a set. No recursive cloning available.

ovoid print(ostream &s) const
Output method (used by operator <<).

oNst_Vertex_Type type() const
Returns the type of vertex: here NST_VERTEX_SET.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.