diff -r 0b7169db694f -r 9e903d3a1ef6 src/work/deba/graph_io_test.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/work/deba/graph_io_test.cc Wed Dec 08 20:54:26 2004 +0000 @@ -0,0 +1,23 @@ +#include +#include + +#include +#include + +using namespace std; +using namespace lemon; + +int main() { + ifstream input("test.lgf"); + SmartGraph graph; + GraphReader reader(input, graph); + SmartGraph::NodeMap cost(graph); + reader.readNodeMap("cost", cost); + SmartGraph::NodeMap color(graph); + reader.readNodeMap("color", color); + reader.read(); + for (SmartGraph::NodeIt it(graph); it != INVALID; ++it) { + cout << cost[it] << color[it] << endl; + } + return 0; +}