doc/graph_io.dox
changeset 1889 edcb68a93a95
parent 1842 8abf74160dc4
child 1901 723b2b81d900
equal deleted inserted replaced
12:4f00de20f810 13:71a95f67888e
   450 NodeSetReader<UndirListGraph> nodesetReader(reader, network);
   450 NodeSetReader<UndirListGraph> nodesetReader(reader, network);
   451 UndirEdgeSetReader<UndirListGraph> 
   451 UndirEdgeSetReader<UndirListGraph> 
   452   undirEdgesetReader(reader, network, nodesetReader);
   452   undirEdgesetReader(reader, network, nodesetReader);
   453 undirEdgesetReader.readEdgeMap("capacity", capacity);
   453 undirEdgesetReader.readEdgeMap("capacity", capacity);
   454 EdgeSetReader<ListEdgeSet<UndirListGraph> > 
   454 EdgeSetReader<ListEdgeSet<UndirListGraph> > 
   455   edgesetReader(reader, traffic, nodesetReader);
   455   edgesetReader(reader, traffic, nodesetReader, "traffic");
   456 edgesetReader.readEdgeMap("request", request);
   456 edgesetReader.readEdgeMap("request", request);
   457 
   457 
   458 reader.run();
   458 reader.run();
   459 \endcode
   459 \endcode
   460 
   460 
   473 ListEdgeSet<UndirListGraph>::EdgeMap<double> request(network);
   473 ListEdgeSet<UndirListGraph>::EdgeMap<double> request(network);
   474 
   474 
   475 UndirGraphReader<UndirListGraph> reader(std::cin, network);
   475 UndirGraphReader<UndirListGraph> reader(std::cin, network);
   476 reader.readEdgeMap("capacity", capacity);
   476 reader.readEdgeMap("capacity", capacity);
   477 EdgeSetReader<ListEdgeSet<UndirListGraph> > 
   477 EdgeSetReader<ListEdgeSet<UndirListGraph> > 
   478   edgesetReader(reader, traffic, reader);
   478   edgesetReader(reader, traffic, reader, "traffic");
   479 edgesetReader.readEdgeMap("request", request);
   479 edgesetReader.readEdgeMap("request", request);
   480 
   480 
   481 reader.run();
   481 reader.run();
   482 \endcode
   482 \endcode
   483 
   483