Public Methods | |
Edge (VertexID v1=-1, VertexID v2=-1) | |
void | set (VertexID v1, VertexID v2) |
VertexID | getV1 () |
VertexID | getV2 () |
bool | operator== (const Edge &edge) |
void | operator= (const Edge &edge) |
The edge is defined by the two VertexID's of the two vertices of the edge. The edge has no direction, so the order on the two VertexID's is random.
|
Constructor. Initializes the edge with the VertexID's
|
|
Get the first VertexID.
|
|
Get the second VertexID.
|
|
Sets the edge according to edge.
|
|
Compares 2 Edges. Edges are the same if they have the same two VertexID's (not necessarily in the same order)
|
|
Sets the VertexID's.
|