Changeset 2416:261b4701405d in lemon-0.x for demo
- Timestamp:
- 03/30/07 16:17:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3248
- Location:
- demo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/reader_writer_demo.cc
r2391 r2416 40 40 try { 41 41 std::string filename="sample.lgf"; 42 std::string name; 42 43 GraphReader<SmartGraph> reader(filename,graph); 43 44 SmartGraph::EdgeMap<int> cap(graph); 44 45 reader.readEdgeMap("capacity",cap); 46 reader.readAttribute("name",name); 45 47 reader.run(); 46 48 … … 52 54 GraphWriter<SmartGraph> writer(std::cout, graph); 53 55 writer.writeEdgeMap("multiplicity", cap); 56 writer.writeAttribute("name",name); 54 57 writer.run(); 55 58 -
demo/sample.lgf
r1901 r2416 21 21 target 5 22 22 @edges 23 @attributes 23 @attributes 24 name "Simple Sample Graph" 24 25 author "Attila BERNATH" 25 26 @end
Note: See TracChangeset
for help on using the changeset viewer.