COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/lgf_demo.cc

    r294 r290  
    4545
    4646  try {
    47     digraphReader(g, "digraph.lgf"). // read the directed graph into g
     47    digraphReader("digraph.lgf", g). // read the directed graph into g
    4848      arcMap("capacity", cap).       // read the 'capacity' arc map into cap
    4949      node("source", s).             // read 'source' node to s
     
    6161  std::cout << "We can write it to the standard output:" << std::endl;
    6262
    63   digraphWriter(g).                // write g to the standard output
     63  digraphWriter(std::cout, g).     // write g to the standard output
    6464    arcMap("capacity", cap).       // write cap into 'capacity'
    6565    node("source", s).             // write s to 'source'
Note: See TracChangeset for help on using the changeset viewer.