Changeset 1627:3fd1ba6e9872 in lemon0.x for lemon/graph_adaptor.h
 Timestamp:
 08/11/05 17:55:17 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2135
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/graph_adaptor.h
r1576 r1627 106 106 void clear() const { graph>clear(); } 107 107 108 bool forward(const Edge& e) const { return graph>forward(e); }109 bool backward(const Edge& e) const { return graph>backward(e); }110 111 108 int id(const Node& v) const { return graph>id(v); } 112 109 int id(const Edge& e) const { return graph>id(e); } 113 110 114 Edge opposite(const Edge& e) const { return Edge(graph>opposite(e)); } 111 Edge oppositeNode(const Edge& e) const { 112 return Edge(graph>opposite(e)); 113 } 115 114 116 115 template <typename _Value> … … 609 608 610 609 void set(Edge e, T a) { 611 if (g> forward(e))610 if (g>direction(e)) 612 611 forward_map.set(e, a); 613 612 else … … 616 615 617 616 T operator[](Edge e) const { 618 if (g> forward(e))617 if (g>direction(e)) 619 618 return forward_map[e]; 620 619 else
Note: See TracChangeset
for help on using the changeset viewer.