COIN-OR::LEMON - Graph Library

Changeset 167:30a7be486475 in glemon-0.x for graph_displayer_canvas.cc


Ignore:
Timestamp:
10/19/06 09:49:40 (18 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.