demo/graph_to_eps_demo.cc
changeset 612 0c8e5c688440
parent 440 88ed40ad0d4f
     1.1 --- a/demo/graph_to_eps_demo.cc	Tue Apr 21 15:18:54 2009 +0100
     1.2 +++ b/demo/graph_to_eps_demo.cc	Thu Apr 23 10:44:35 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);