equal
deleted
inserted
replaced
468 int maxArcId() const { return arcs.size()-1; } |
468 int maxArcId() const { return arcs.size()-1; } |
469 |
469 |
470 Node source(Arc e) const { return Node(arcs[e._id ^ 1].target); } |
470 Node source(Arc e) const { return Node(arcs[e._id ^ 1].target); } |
471 Node target(Arc e) const { return Node(arcs[e._id].target); } |
471 Node target(Arc e) const { return Node(arcs[e._id].target); } |
472 |
472 |
473 Node source(Edge e) const { return Node(arcs[2 * e._id].target); } |
473 Node u(Edge e) const { return Node(arcs[2 * e._id].target); } |
474 Node target(Edge e) const { return Node(arcs[2 * e._id + 1].target); } |
474 Node v(Edge e) const { return Node(arcs[2 * e._id + 1].target); } |
475 |
475 |
476 static bool direction(Arc e) { |
476 static bool direction(Arc e) { |
477 return (e._id & 1) == 1; |
477 return (e._id & 1) == 1; |
478 } |
478 } |
479 |
479 |