Defines labelled (by integer) edge of the directed graph. More...
#include <GraphType.h>
Public Member Functions | |
IntLabeledEdge (int target, int label) | |
Constructor for an edge. Argument t is a number of the target. | |
IntLabeledEdge () | |
Dummy constructor, not to be used, required for STL::map. Also, can be used to denote "failure" or "dead-end" edge. | |
IntLabeledEdge | inverse (int origin) |
Invert an edge. | |
bool | operator< (const IntLabeledEdge &e) const |
Check if one edge is less than the other. | |
bool | operator== (const IntLabeledEdge &e) const |
Check if two edges equal. | |
bool | operator!= (const IntLabeledEdge &e) const |
Check if two edges are not equal. | |
Public Attributes | |
int | theLabel |
The label of the edge. |
Defines labelled (by integer) edge of the directed graph.
Definition at line 103 of file GraphType.h.
IntLabeledEdge::IntLabeledEdge | ( | int | target, | |
int | label | |||
) | [inline] |
Constructor for an edge. Argument t is a number of the target.
Definition at line 106 of file GraphType.h.
IntLabeledEdge::IntLabeledEdge | ( | ) | [inline] |
Dummy constructor, not to be used, required for STL::map. Also, can be used to denote "failure" or "dead-end" edge.
Definition at line 109 of file GraphType.h.
Referenced by inverse().
IntLabeledEdge IntLabeledEdge::inverse | ( | int | origin | ) | [inline] |
Invert an edge.
Reimplemented from GraphEdge.
Reimplemented in PlanarGraphIntLabelledEdge.
Definition at line 113 of file GraphType.h.
References IntLabeledEdge(), and theLabel.
bool IntLabeledEdge::operator!= | ( | const IntLabeledEdge & | e | ) | const [inline] |
Check if two edges are not equal.
Reimplemented from GraphEdge.
Reimplemented in PlanarGraphIntLabelledEdge.
Definition at line 128 of file GraphType.h.
References theLabel.
bool IntLabeledEdge::operator< | ( | const IntLabeledEdge & | e | ) | const [inline] |
Check if one edge is less than the other.
Reimplemented from GraphEdge.
Reimplemented in PlanarGraphIntLabelledEdge.
Definition at line 116 of file GraphType.h.
References theLabel, and GraphEdge::theTarget.
bool IntLabeledEdge::operator== | ( | const IntLabeledEdge & | e | ) | const [inline] |
Check if two edges equal.
Reimplemented from GraphEdge.
Reimplemented in PlanarGraphIntLabelledEdge.
Definition at line 124 of file GraphType.h.
References theLabel.
The label of the edge.
Definition at line 132 of file GraphType.h.
Referenced by PlanarGraphIntLabelledEdge::inverse(), inverse(), PlanarGraphIntLabelledEdge::operator!=(), operator!=(), PlanarGraphIntLabelledEdge::operator<(), operator<(), PlanarGraphIntLabelledEdge::operator==(), and operator==().