# HG changeset patch # User hegyi # Date 1161244180 0 # Node ID 30a7be48647599ef6202d425e1309695962a602a # Parent 302d75b08b27879fbaf4589405905bcd53233293 Used randomizator is changed to the one included in Lemon diff -r 302d75b08b27 -r 30a7be486475 graph_displayer_canvas-edge.cc --- a/graph_displayer_canvas-edge.cc Mon Oct 16 13:05:25 2006 +0000 +++ b/graph_displayer_canvas-edge.cc Thu Oct 19 07:49:40 2006 +0000 @@ -1,7 +1,7 @@ #include "graph_displayer_canvas.h" #include -const int minimum_edge_width=2; +const int minimum_edge_width=0; int GraphDisplayerCanvas::resetEdgeWidth (Edge edge) { diff -r 302d75b08b27 -r 30a7be486475 graph_displayer_canvas.cc --- a/graph_displayer_canvas.cc Mon Oct 16 13:05:25 2006 +0000 +++ b/graph_displayer_canvas.cc Thu Oct 19 07:49:40 2006 +0000 @@ -1,4 +1,5 @@ #include "graph_displayer_canvas.h" +#include #include GraphDisplayerCanvas::GraphDisplayerCanvas(NoteBookTab & mainw) : @@ -261,7 +262,9 @@ if(!was_redesigned) { NodeIt i((mytab.mapstorage).graph); - double r=random(); + + double r=Random().getReal(); + dim2::Point init(init_vector_length*sin(r),init_vector_length*cos(r)); moveNode(init.x, init.y, nodesmap[i], i); was_redesigned=true;