Changeset 199:e3aba2c72be4 in lemon-main
- Timestamp:
- 07/10/08 16:03:23 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_utils.h
r169 r199 603 603 for (typename From::ArcIt it(from); it != INVALID; ++it) { 604 604 arcRefMap[it] = to.addArc(nodeRefMap[from.source(it)], 605 605 nodeRefMap[from.target(it)]); 606 606 } 607 607 } … … 629 629 } 630 630 for (typename From::EdgeIt it(from); it != INVALID; ++it) { 631 edgeRefMap[it] = to.add Arc(nodeRefMap[from.source(it)],632 nodeRefMap[from.target(it)]);631 edgeRefMap[it] = to.addEdge(nodeRefMap[from.u(it)], 632 nodeRefMap[from.v(it)]); 633 633 } 634 634 } … … 926 926 927 927 Value operator[](const Key& key) const { 928 bool forward = 929 (_from.direction(key) == 930 (_node_ref[_from.source(key)] == _to.source(_edge_ref[key]))); 928 bool forward = _from.u(key) != _from.v(key) ? 929 _node_ref[_from.source(key)] == 930 _to.source(_to.direct(_edge_ref[key], true)) : 931 _from.direction(key); 931 932 return _to.direct(_edge_ref[key], forward); 932 933 }
Note: See TracChangeset
for help on using the changeset viewer.