struct node { int from,to,w; bool operator < (const node & b) const { return w<b.w; } } ; 转载于:https://www.cnblogs.com/xcantaloupe/p/7361145.html