COIN-OR::LEMON - Graph Library

Changeset 155:74065e83844d in glemon-0.x for graph_displayer_canvas-node.cc


Ignore:
Timestamp:
09/28/06 11:26:48 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2960
Message:

Small modification in node view settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-node.cc

    r154 r155  
    22#include <cmath>
    33
     4const int minimum_node_radius=0;
    45
    56int GraphDisplayerCanvas::changeNodeRadius (std::string mapname, Node node)
     
    2526              else
    2627                {
    27                   w=(int)(radius_min+(v-min)/(max-min)*(radius_max-radius_min));
     28                  w=(int)(minimum_node_radius+(v-min)/(max-min)*(radius_max-minimum_node_radius));
    2829                }
    2930            }
    3031          else
    3132            {
    32               w=5+(int)(v/radius_unit);
    33             }
     33              w=(int)(v*radius_max);
     34            }
     35
     36          if(w<5)
     37            {
     38              w=5;
     39            }
     40
    3441          if(w>=0)
    3542            {
Note: See TracChangeset for help on using the changeset viewer.