Changes in demo/lgf_demo.cc [294:cbe3ec2d59d2:209:765619b7cbb2] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/lgf_demo.cc
r294 r209 45 45 46 46 try { 47 digraphReader( g, "digraph.lgf"). // read the directed graph into g47 digraphReader("digraph.lgf", g). // read the directed graph into g 48 48 arcMap("capacity", cap). // read the 'capacity' arc map into cap 49 49 node("source", s). // read 'source' node to s 50 50 node("target", t). // read 'target' node to t 51 51 run(); 52 } catch ( Exception& error) { // check if there was any error52 } catch (DataFormatError& error) { // check if there was any error 53 53 std::cerr << "Error: " << error.what() << std::endl; 54 54 return -1; … … 61 61 std::cout << "We can write it to the standard output:" << std::endl; 62 62 63 digraphWriter( g).// write g to the standard output63 digraphWriter(std::cout, g). // write g to the standard output 64 64 arcMap("capacity", cap). // write cap into 'capacity' 65 65 node("source", s). // write s to 'source'
Note: See TracChangeset
for help on using the changeset viewer.