Changeset 155:8c6292ec54c6 in lemon-0.x for src/work/marci/edmonds_karp_demo.cc
- Timestamp:
- 03/04/04 20:38:07 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/edmonds_karp_demo.cc
r146 r155 6 6 #include <edmonds_karp.hh> 7 7 #include <time_measure.h> 8 #include <graph_wrapper.h> 8 9 9 10 using namespace hugo; … … 58 59 ListGraph::EdgeMap<int> cap(G); 59 60 readDimacsMaxFlow(std::cin, G, s, t, cap); 61 /* 62 typedef TrivGraphWrapper<ListGraph> TGW; 63 TGW gw(G); 64 TGW::EachNodeIt sw; 65 gw.getFirst(sw); 66 std::cout << "p1:" << gw.nodeNum() << std::endl; 67 gw.erase(sw); 68 std::cout << "p2:" << gw.nodeNum() << std::endl; 69 70 typedef const ListGraph cLG; 71 typedef TrivGraphWrapper<const cLG> CTGW; 72 CTGW cgw(G); 73 CTGW::EachNodeIt csw; 74 cgw.getFirst(csw); 75 std::cout << "p1:" << cgw.nodeNum() << std::endl; 76 //cgw.erase(csw); 77 std::cout << "p2:" << cgw.nodeNum() << std::endl; 78 */ 60 79 61 80 {
Note: See TracChangeset
for help on using the changeset viewer.