Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <vector>#include <queue>#include <map>#include <string>#include <stdio.h>using namespace std;class Edge{public:int from;int to;int weight;Edge(){};Edge(int from,int to,int weight){this->from=from;this->to=to;this->weight=weight;}void print(){cout<<from<<"\t"<<to<<"\t"<<weight<<endl;}bool friend operator< (Edge e1,Edge e2){return e2.weight<e1.weight;}