COIN-OR::LEMON - Graph Library

Changeset 2416:261b4701405d in lemon-0.x for demo/reader_writer_demo.cc


Ignore:
Timestamp:
03/30/07 16:17:28 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3248
Message:

Small improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/reader_writer_demo.cc

    r2391 r2416  
    4040  try {
    4141    std::string filename="sample.lgf";
     42    std::string name;
    4243    GraphReader<SmartGraph> reader(filename,graph);
    4344    SmartGraph::EdgeMap<int> cap(graph);
    4445    reader.readEdgeMap("capacity",cap);
     46    reader.readAttribute("name",name);
    4547    reader.run();
    4648
     
    5254    GraphWriter<SmartGraph> writer(std::cout, graph);
    5355    writer.writeEdgeMap("multiplicity", cap);
     56    writer.writeAttribute("name",name);
    5457    writer.run();
    5558     
Note: See TracChangeset for help on using the changeset viewer.