13 Edge(
const Edge &e) : p1(e.p1), p2(e.p2), weight(e.weight) {};
14 Edge(): p1(0,0), p2(0,0) {}
22 inline std::ostream &operator << (std::ostream &str,
Edge<T> const &e)
24 return str <<
"Edge " << e.p1 <<
", " << e.p2;
28 inline bool operator == (
const Edge<T> & e1,
const Edge<T> & e2)
30 return (e1.p1 == e2.p1 && e1.p2 == e2.p2) ||
31 (e1.p1 == e2.p2 && e1.p2 == e2.p1);