23 #include <tulip/tuliphash.h> 57 explicit edge(
unsigned int j):id(j) {}
62 operator unsigned int()
const {
99 TLP_BEGIN_HASH_NAMESPACE {
101 struct hash<tlp::
edge>{
102 size_t operator()(
const tlp::edge e)
const {
return e.
id;}
104 } TLP_END_HASH_NAMESPACE
108 struct equal_to<tlp::
edge> {
114 struct less<tlp::
edge> {
bool operator==(const edge e) const
operator == checks if two edges are equals.
edge(unsigned int j)
edge Create an edge of given identifier. It is your responsibility to make sure an edge of this ID ex...
The edge struct represents an edge in a Graph object.
edge()
edge creates an invalid edge.
bool operator!=(const edge e) const
operator != checks if two edges are differents.
bool isValid() const
isValid checks if the edge is valid. An invalid edge is an edge whose id is UINT_MAX.
unsigned int id
id The identifier of the edge.