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