Edge. More...

#include <redge.h>

Inheritance diagram for REdge:
[legend]
Collaboration diagram for REdge:
[legend]

Public Member Functions

int Compare (const REdge &e) const
 
 REdge (RVertex *f, RVertex *t, double w)
 
- Public Member Functions inherited from RGenericEdge< RVertex, REdge >
int Compare (const RGenericEdge &e) const
 
RVertexGetFrom (void) const
 
RVertexGetTo (void) const
 
double GetWeight (void) const
 
bool IsConnect (size_t id) const
 
 RGenericEdge (RVertex *f, RVertex *t, double w)
 
void SetWeight (double weight)
 
virtual ~RGenericEdge (void)
 

Detailed Description

Edge.

The RVertex class provides a representation for an edge from one vertex to another one in a given graph. The edge is directed but may be considered as undirected in some situations.

Constructor & Destructor Documentation

REdge ( RVertex f,
RVertex t,
double  w 
)

Constructor of the edge.

Parameters
fVertex starting the edge.
tVertex ending the edge.
wWeight

Member Function Documentation

int Compare ( const REdge e) const

The methods used to compare two edges. The function returns the same type of information than the strcmp function from the standard C library.

See also
R::RContainer.
Parameters
eEdge used for the comparison.