Changeset 1577:15098fb5275c in lemon-0.x for demo/sub_graph_adaptor_demo.cc
- Timestamp:
- 07/20/05 18:05:04 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2078
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/sub_graph_adaptor_demo.cc
r1560 r1577 17 17 #include <tight_edge_filter_map.h> 18 18 19 20 21 //#include <lemon/graph_reader.h> 22 //#include <lemon/graph_writer.h> 23 19 24 using namespace lemon; 20 25 … … 26 31 if(argc<2) 27 32 { 28 std::cerr << "USAGE: sub_graph_adaptor_demo <input_file.dim>" << std::endl;33 std::cerr << "USAGE: sub_graph_adaptor_demo input_file.dim" << std::endl; 29 34 std::cerr << "The file 'input_file.dim' has to contain a max flow instance in DIMACS format (e.g. sub_graph_adaptor_demo.dim is such a file)." << std::endl; 30 35 return 0; … … 48 53 49 54 readDimacs(is, g, length, s, t); 55 56 // GraphWriter<SmartGraph> writer(std::cout, g); 57 // writer.writeEdgeMap("length", length); 58 // writer.writeNode("source",s); 59 // writer.writeNode("target",t); 60 // writer.run(); 61 62 // GraphReader<ListGraph> reader(is,g); 63 // reader.readNode("source",s).readNode("target",t) 64 // .readEdgeMap("length",length).run(); 50 65 51 66 cout << "edges with lengths (of form id, source--length->target): " << endl;
Note: See TracChangeset
for help on using the changeset viewer.