demo/reader_writer_demo.cc
changeset 1530 d99c3c84f797
parent 1528 1aa71600000c
child 1534 b86aad11f842
     1.1 --- a/demo/reader_writer_demo.cc	Mon Jul 04 07:51:57 2005 +0000
     1.2 +++ b/demo/reader_writer_demo.cc	Mon Jul 04 13:08:31 2005 +0000
     1.3 @@ -15,8 +15,6 @@
     1.4      GraphReader<SmartGraph> reader(filename,graph);
     1.5      SmartGraph::EdgeMap<int> cap(graph);
     1.6      reader.readEdgeMap("capacity",cap);
     1.7 -//     reader.readNode("source",s).readNode("target",t)
     1.8 -//       .readEdgeMap("capacity",cap).run();
     1.9      reader.run();
    1.10  
    1.11      std::cout << "Hello! We have read a graph from file " << filename<< 
    1.12 @@ -30,50 +28,6 @@
    1.13  //     writer.writeNode("target", t);
    1.14      writer.run();
    1.15       
    1.16 -//     LemonReader reader(std::cin);
    1.17 -
    1.18 -//     NodeSetReader<SmartGraph> nodeset(reader, graph);
    1.19 -//     SmartGraph::NodeMap<int> cost(graph);
    1.20 -//     nodeset.readMap("cost", cost);
    1.21 -//     SmartGraph::NodeMap<char> mmap(graph);
    1.22 -//     nodeset.readMap("mmap", mmap);
    1.23 -
    1.24 -//     EdgeSetReader<SmartGraph> edgeset(reader, graph, nodeset);
    1.25 -//     SmartGraph::EdgeMap<std::string> description(graph);
    1.26 -//     edgeset.readMap<QuotedStringReader>("description", description);
    1.27 -
    1.28 -//     NodeReader<SmartGraph> nodes(reader, nodeset);
    1.29 -//     SmartGraph::Node source;
    1.30 -//     nodes.readNode("source", source);
    1.31 -//     SmartGraph::Node target;
    1.32 -//     nodes.readNode("target", target);
    1.33 -
    1.34 -//     AttributeReader<> attribute(reader, "gui");
    1.35 -//     std::string author;
    1.36 -//     attribute.readAttribute<LineReader>("author", author);
    1.37 -//     int count;
    1.38 -//     attribute.readAttribute("count", count);
    1.39 -
    1.40 -//     PrintReader print(reader);
    1.41 -
    1.42 -//     reader.run();
    1.43 -
    1.44 -
    1.45 -//     for (SmartGraph::NodeIt it(graph); it != INVALID; ++it) {
    1.46 -//       std::cout << cost[it] << ' ' << mmap[it] << std::endl;
    1.47 -//     }
    1.48 -
    1.49 -//     for (SmartGraph::EdgeIt it(graph); it != INVALID; ++it) {
    1.50 -//       std::cout << description[it] << std::endl;
    1.51 -//     }
    1.52 -
    1.53 -//     std::cout << "author: " << author << std::endl;
    1.54 -//     std::cout << "count: " << count << std::endl;
    1.55 -
    1.56 -//     std::cout << "source cost: " << cost[source] << std::endl;
    1.57 -//     std::cout << "target cost: " << cost[target] << std::endl;
    1.58 -
    1.59 -//     std::cout.flush();
    1.60    } catch (DataFormatError& error) {
    1.61      std::cerr << error.what() << std::endl;
    1.62    }