class NstEdge

Directed edge in a graph (see class NstGraph)

Inheritance:


Public Fields

[more]int tag[10]
Multi-purpose tags

Public Methods

[more] NstEdge()
Creates an edge with empty head and tail, tags are not initialized.
[more]virtual ~NstEdge()
virtual destructor
[more]void copy(const NstEdge & s, int deep = 0)
Copy the edge. No recursive copy available.
[more]NstEdge* clone(int deep = 0)
Clones the edge. No recursive cloning available.
[more]void print(ostream &s) const
Output method (used by operator <<).
[more]Nst_Edge_Type type() const
Returns the type of edge: here NST_EDGE_BASIC.
[more]NstVertex* from() const
Returns the tail of the edge.
[more]NstVertex* to() const
Returns the head of the edge.
[more]void from(NstVertex * const new_from)
Changes the tail of the edge.
[more]void to(NstVertex * const new_to)
Changes the head of the edge.


Documentation

Directed edge in a graph (see class NstGraph). Basic object.

An edge is directed from a vertex (see class NstVertex) called the tail to a vertex called the head.

oint tag[10]
Multi-purpose tags.

o NstEdge()
Creates an edge with empty head and tail, tags are not initialized.

ovirtual ~NstEdge()
virtual destructor

ovoid copy(const NstEdge & s, int deep = 0)
Copy the edge. No recursive copy available.

oNstEdge* clone(int deep = 0)
Clones the edge. No recursive cloning available.

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

oNst_Edge_Type type() const
Returns the type of edge: here NST_EDGE_BASIC.

oNstVertex* from() const
Returns the tail of the edge.

oNstVertex* to() const
Returns the head of the edge.

ovoid from(NstVertex * const new_from)
Changes the tail of the edge.

ovoid to(NstVertex * const new_to)
Changes the head of the edge.


Direct child classes:
NstDependence

Alphabetic index HTML hierarchy of classes or Java



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