23 #include <tulip/tuliphash.h> 59 explicit node(
unsigned int j) : id(j) {}
64 operator unsigned int()
const {
93 return id != UINT_MAX;
101 TLP_BEGIN_HASH_NAMESPACE {
103 struct hash<tlp::
node> {
104 size_t operator()(
const tlp::node n)
const {
109 TLP_END_HASH_NAMESPACE
113 struct equal_to<tlp::
node> {
115 return n.
id == n2.
id;
119 struct less<tlp::
node> {
node()
node creates an invalid node.
node(unsigned int j)
node Create a node of given identifier. It is your responsibility to make sure a node of this ID exis...
The node struct represents a node in a Graph object.
unsigned int id
id The identifier of the node.
bool isValid() const
isValid checks if the node is valid. An invalid node is a node whose id is UINT_MAX.
bool operator!=(const node n) const
operator != Compares two nodes, checking that they are different..
bool operator==(const node n) const
operator != Compares two nodes, checking that they are identical.