graph_to_eps mission accomplished.
- lemon/graph_to_eps.h header created
- lemon/bezier.h: Tools to compute with bezier curves (unclean and undocumented
interface, used internally by graph_to_eps.h)
- demo/graph_to_eps_demo.cc: a simple demo for lemon/graph_to_eps.h
5 #include <sage_graph.h>
6 #include <for_each_macros.h>
12 typedef SageGraph Graph;
14 Graph::Node n1=g.addNode();
15 Graph::Node n2=g.addNode();
18 std::cout << g.id(n) << " ";
20 std::cout << std::endl;
21 FOR_EACH_LOC(Graph::NodeIt, m, g) {
22 std::cout << g.id(m) << " ";
24 std::cout << std::endl;