Changeset 192:7bf5f97d574f in lemon-1.2 for demo/lgf_demo.cc
- Timestamp:
- 07/05/08 00:14:27 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/lgf_demo.cc
r164 r192 35 35 #include <lemon/lgf_reader.h> 36 36 #include <lemon/lgf_writer.h> 37 #include <lemon/random.h>38 39 37 40 38 using namespace lemon; … … 45 43 SmartDigraph::Node s, t; 46 44 47 digraphReader("digraph.lgf", g). // read the directe ggraph into g45 digraphReader("digraph.lgf", g). // read the directed graph into g 48 46 arcMap("capacity", cap). // read the 'capacity' arc map into cap 49 47 node("source", s). // read 'source' node to s … … 51 49 run(); 52 50 53 std::cout << " Digraph read from 'digraph.lgf'" << std::endl;51 std::cout << "A digraph is read from 'digraph.lgf'." << std::endl; 54 52 std::cout << "Number of nodes: " << countNodes(g) << std::endl; 55 53 std::cout << "Number of arcs: " << countArcs(g) << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.