COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
07/20/05 18:05:04 (19 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2078
Message:

Documentation (lp_demo,lp_maxflow) and slight changes (rest).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/sub_graph_adaptor_demo.cc

    r1560 r1577  
    1717#include <tight_edge_filter_map.h>
    1818
     19
     20
     21//#include <lemon/graph_reader.h>
     22//#include <lemon/graph_writer.h>
     23
    1924using namespace lemon;
    2025
     
    2631  if(argc<2)
    2732  {
    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;
    2934      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;
    3035      return 0;
     
    4853
    4954  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();
    5065
    5166  cout << "edges with lengths (of form id, source--length->target): " << endl;
Note: See TracChangeset for help on using the changeset viewer.