19 edge(
int f,
int t,
int c,
bool v =
false);
26 bool operator== (
const edge &e)
const;
60 bool operator() (
const edge& a,
const edge& b)
const;
73 size_t operator() (
const edge& e)
const;
A struct that provides the comparison of edge objects. It allows sorting of edges for priority queues...
int cost
The cost of the edge, i.e., length.
int to
The ending vertex of the edge.
A class for representing edges.
A struct that provides the hash function of edge objects.
int from
The starting vertex of the edge.
bool vertical
Whether the sweeping pattern is vertical or horizontal.