Vertex. More...
#include <rvertex.h>
Inheritance diagram for RVertex:
Collaboration diagram for RVertex:
Public Member Functions | |
int | Compare (const RVertex &v) const |
RVertex (size_t id, size_t nb=10) | |
RVertex (const RVertex &v) | |
Public Member Functions inherited from RGenericVertex< RVertex, REdge > | |
int | Compare (const RGenericVertex &v) const |
int | Compare (const size_t i) const |
void | GetAdjacentVertices (RContainer< RVertex, false, bOrder > &vertices, bool verify=false) const |
REdge * | GetEdge (size_t id) const |
REdge * | GetEdgeFrom (size_t id) const |
RCursor< REdge > | GetEdges (void) const |
REdge * | GetEdgeTo (size_t id) const |
size_t | GetId (void) const |
size_t | GetNbEdges (void) const |
RGenericVertex (size_t id, size_t nb=10) | |
RGenericVertex (const RGenericVertex &v) | |
virtual | ~RGenericVertex (void) |
Additional Inherited Members | |
Protected Attributes inherited from RGenericVertex< RVertex, REdge > | |
RContainer< REdge, false, false > | Edges |
size_t | Id |
Detailed Description
Vertex.
The RVertex class provides a representation for a vertex.
Constructor & Destructor Documentation
RVertex | ( | size_t | id, |
size_t | nb = 10 |
||
) |
Constructor of the vertex.
- Parameters
-
id Identifier. nb Supposed number of edges.
Member Function Documentation
int Compare | ( | const RVertex & | v | ) | const |
Is used to compare two vertices. The function returns the same type of information than the strcmp function from the standard C library.
- Parameters
-
v Vertex used for the comparison.