Graph graph;
Lp lp;
Graph::EdgeMap<Lp::Col> var(graph);
GraphWriter<Graph> writer(cin, graph);
writer.writeEdgeMap("lpvar", var, LpColWriter(lp));
writer.run();
If there is no name associated to the current item then the name will automatically constructed. If the value is INVALID then it will write an '-' value to the file. #include <lemon/lp_utils.h>
Public Types | |
| typedef LpSolverBase::Col | Value |
Public Member Functions | |
| LpColWriter (const LpSolverBase &_lp) | |
| void | write (std::ostream &os, const LpSolverBase::Col &col) const |
| typedef LpSolverBase::Col Value |
The value type of writer.
| LpColWriter | ( | const LpSolverBase & | _lp | ) | [inline] |
Constructor for the writer.
| void write | ( | std::ostream & | os, | |
| const LpSolverBase::Col & | col | |||
| ) | const [inline] |
Writes an lp variable to the given stream.
1.5.9