demo/lgf_demo.cc
changeset 293 47fbc814aa31
parent 209 765619b7cbb2
child 294 cbe3ec2d59d2
     1.1 --- a/demo/lgf_demo.cc	Mon Sep 29 12:34:08 2008 +0200
     1.2 +++ b/demo/lgf_demo.cc	Wed Oct 01 12:44:16 2008 +0200
     1.3 @@ -44,7 +44,7 @@
     1.4    SmartDigraph::Node s, t;
     1.5  
     1.6    try {
     1.7 -    digraphReader("digraph.lgf", g). // read the directed graph into g
     1.8 +    digraphReader(g, "digraph.lgf"). // read the directed graph into g
     1.9        arcMap("capacity", cap).       // read the 'capacity' arc map into cap
    1.10        node("source", s).             // read 'source' node to s
    1.11        node("target", t).             // read 'target' node to t
    1.12 @@ -60,7 +60,7 @@
    1.13  
    1.14    std::cout << "We can write it to the standard output:" << std::endl;
    1.15  
    1.16 -  digraphWriter(std::cout, g).     // write g to the standard output
    1.17 +  digraphWriter(g).                // write g to the standard output
    1.18      arcMap("capacity", cap).       // write cap into 'capacity'
    1.19      node("source", s).             // write s to 'source'
    1.20      node("target", t).             // write t to 'target'