# HG changeset patch # User alpar # Date 1111939144 0 # Node ID a1f9a4d4ea0c5351448d14e6bede372512aa768a # Parent a93f94dbe3d30c141caebec086cf1f8b71362ca6 Use the standard idMap diff -r a93f94dbe3d3 -r a1f9a4d4ea0c src/demo/graph_to_eps_demo.cc --- a/src/demo/graph_to_eps_demo.cc Fri Mar 25 23:31:57 2005 +0000 +++ b/src/demo/graph_to_eps_demo.cc Sun Mar 27 15:59:04 2005 +0000 @@ -18,19 +18,12 @@ #include #include #include +#include using namespace std; using namespace lemon; -class IdMap :public MapBase -{ - const ListGraph &g; -public: - IdMap(const ListGraph &_g) :g(_g) {} - Value operator[](Key n) const { return g.id(n); } -}; - int main() { ColorSet colorSet; @@ -70,7 +63,7 @@ e=g.addEdge(n2,n4); ecolors[e]=1; widths[e]=2; e=g.addEdge(n3,n4); ecolors[e]=2; widths[e]=1; - IdMap id(g); + IdMap id(g); graphToEps(g,"graph_to_eps_demo_out.eps").scale(10).coords(coords). title("Sample .eps figure").