Edge. More...
#include <redge.h>
Inheritance diagram for REdge:
Collaboration diagram for REdge:
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 |
RVertex * | GetFrom (void) const |
RVertex * | GetTo (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
Constructor of the edge.
- Parameters
-
f Vertex starting the edge. t Vertex ending the edge. w Weight
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
-
e Edge used for the comparison.