59 explicit edge(
unsigned int j) : id(j) {}
64 operator unsigned int()
const {
93 return id != UINT_MAX;
100 #include <tulip/tulipconf.h> 102 struct TLP_SCOPE __tlp_vector_edge :
public std::vector<tlp::edge> {};
110 struct hash<tlp::
edge> {
111 size_t operator()(
const tlp::edge e)
const {
116 struct equal_to<tlp::
edge> {
118 return e.
id == e2.
id;
122 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.