59 explicit edge(
unsigned int j) :
id(j) {}
64 operator unsigned int()
const {
93 return id != UINT_MAX;
103struct hash<tlp::edge> {
104 size_t operator()(
const tlp::edge e)
const {
109struct equal_to<tlp::edge> {
110 size_t operator()(
const tlp::edge e,
const tlp::edge e2)
const {
111 return e.
id == e2.
id;
115struct less<tlp::edge> {
116 size_t operator()(
const tlp::edge e,
const tlp::edge e2)
const {
constexpr edge()
edge creates an invalid edge.
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.
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 operator!=(const edge e) const
operator != checks if two edges are different.
bool operator==(const edge e) const
operator == checks if two edges are equals.