friend bool operator <(node a,node b){ return a.r<b.r; } 和 bool operator<(const node &a)const{ return r<a.r; } 有什么区别
friend bool operator <(node a,node b){ return a.r<b.r; }
bool operator<(const node &a)const{ return r<a.r; }