Introduction - If you have any usage issues, please Google them yourself
struct Edge {
Edge(int from, int to, int cost) : from(from), to(to), cost(cost) {}
friend bool operator<(const Edge& a, const Edge& b) {
if (a.cost != b.cost) {
return a.cost > b.cost
}