Changes in / [201:9757e3d9bfeb:202:a5ee729dc1e1] in lemon-main
- Files:
-
- 1 added
- 3 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 } -
test/CMakeLists.txt
r171 r200 11 11 dim_test 12 12 error_test 13 graph_copy_test 13 14 graph_test 14 15 graph_utils_test -
test/Makefile.am
r171 r200 16 16 test/dim_test \ 17 17 test/error_test \ 18 test/graph_copy_test \ 18 19 test/graph_test \ 19 20 test/graph_utils_test \ … … 37 38 test_dim_test_SOURCES = test/dim_test.cc 38 39 test_error_test_SOURCES = test/error_test.cc 40 test_graph_copy_test_SOURCES = test/graph_copy_test.cc 39 41 test_graph_test_SOURCES = test/graph_test.cc 40 42 test_graph_utils_test_SOURCES = test/graph_utils_test.cc
Note: See TracChangeset
for help on using the changeset viewer.