demo/graph_to_eps_demo.cc
changeset 830 ef88c0a30f85
parent 463 88ed40ad0d4f
     1.1 --- a/demo/graph_to_eps_demo.cc	Mon Jan 12 23:11:39 2009 +0100
     1.2 +++ b/demo/graph_to_eps_demo.cc	Thu Nov 05 15:48:01 2009 +0100
     1.3 @@ -182,7 +182,7 @@
     1.4    ListDigraph::NodeMap<int> hcolors(h);
     1.5    ListDigraph::NodeMap<Point> hcoords(h);
     1.6  
     1.7 -  int cols=int(sqrt(double(palette.size())));
     1.8 +  int cols=int(std::sqrt(double(palette.size())));
     1.9    for(int i=0;i<int(paletteW.size());i++) {
    1.10      Node n=h.addNode();
    1.11      hcoords[n]=Point(1+i%cols,1+i/cols);