class NstEdge

Directed edge in a graph (see class NstGraph)

Inheritance:


Public Fields

int tag[10]
Multi-purpose tags

Public Methods

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

Private Methods

friend ostream& operator << (ostream&, const NstEdge&)
Prints 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.

friend ostream& operator << (ostream&, const NstEdge&)
Prints the edge.

int tag[10]
Multi-purpose tags

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

virtual ~NstEdge()
virtual destructor

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

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

virtual void print(ostream &s)
Output method (used by operator <<).

virtual Nst_Edge_Type type()
Returns the type of edge: here NST_EDGE_BASIC.

NstVertex* from()
Returns the tail of the edge.

NstVertex* to()
Returns the head of the edge.

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

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


Direct child classes:
NstDependence

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de