COIN-OR::LEMON - Graph Library

Changeset 167:30a7be486475 in glemon-0.x


Ignore:
Timestamp:
10/19/06 09:49:40 (13 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3007
Message:

Used randomizator is changed to the one included in Lemon

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-edge.cc

    r157 r167  
    22#include <cmath>
    33
    4 const int minimum_edge_width=2;
     4const int minimum_edge_width=0;
    55
    66int GraphDisplayerCanvas::resetEdgeWidth (Edge edge)
  • graph_displayer_canvas.cc

    r166 r167  
    11#include "graph_displayer_canvas.h"
     2#include <lemon/random.h>
    23#include <cmath>
    34
     
    262263    {
    263264      NodeIt i((mytab.mapstorage).graph);
    264       double r=random();
     265
     266      double r=Random().getReal();
     267
    265268      dim2::Point<double> init(init_vector_length*sin(r),init_vector_length*cos(r));
    266269      moveNode(init.x, init.y, nodesmap[i], i);
Note: See TracChangeset for help on using the changeset viewer.