diff -r e825655c24a4 -r 4f8b9cee576b demo/grid_graph_demo.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demo/grid_graph_demo.cc Mon Sep 12 09:19:52 2005 +0000 @@ -0,0 +1,29 @@ +#include +#include +#include +#include + +#include +#include + +using namespace lemon; +using namespace std; + +int main() { + GridGraph graph(5, 7); + GridGraph::NodeMap > coord(graph); + for (int i = 0; i < graph.width(); ++i) { + for (int j = 0; j < graph.height(); ++j) { + coord[graph(i, j)] = xy(i * 10.0, j * 10.0); + } + } + graphToEps(graph, "grid_graph.eps").scaleToA4(). + title("Grid graph"). + copyright("(C) 2005 LEMON Project"). + coords(coord). + enableParallel(). + nodeScale(.45). + drawArrows(). + run(); + return 0; +}