lemon/smart_graph.h
changeset 143 c3b45bb643b0
parent 109 abddaa08b507
child 138 a0f755a30cf1
equal deleted inserted replaced
0:9e0725a42c1d 1:5e52d5997554
   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