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