struct error_node { float err; // error value used to sort the list int ind; // index of edge bool operator <(const error_node &rhs) const{ return err<rhs.err; }};