Tulip
4.5.0
Better Visualization Through Research
|
#include <Edge.h>
Public Member Functions | |
edge () | |
edge (unsigned int j) | |
bool | isValid () const |
operator unsigned int () const | |
bool | operator!= (const edge e) const |
bool | operator== (const edge e) const |
Public Attributes | |
unsigned int | id |
The edge struct represents an edge in a Graph object.
This structure only contains an identifier, and a function to check if the edge is valid. A edge is considered invalid when its id has the UINT_MAX value.
Most operations performed on an edge (getting the source, target, etc) are available into the tlp::Graph object.
tlp::edge::edge | ( | ) | [inline] |
tlp::edge::edge | ( | unsigned int | j | ) | [inline, explicit] |
edge Create an edge of given identifier. It is your responsibility to make sure an edge of this ID exists when you create the edge. If you want to make sure this edge exists, use Graph::isElement(), as isValid() will only tell is the edge was correctly initialized.
j | the identifier this edge will use. |
bool tlp::edge::isValid | ( | ) | const [inline] |
tlp::edge::operator unsigned int | ( | ) | const [inline] |
bool tlp::edge::operator!= | ( | const edge | e | ) | const [inline] |
bool tlp::edge::operator== | ( | const edge | e | ) | const [inline] |
unsigned int tlp::edge::id |