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