잊지 않기 위해 작성하는 comp함수

struct cmp {
    bool operator()(edge& A, edge& B) {
        return A.w > B.w;
    }
};
bool cmp (const int &a, const int &b) return a > b;