COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_to_eps.h

    r280 r253  
    667667  ///it draws the graph.
    668668  void run() {
     669    //\todo better 'epsilon' would be nice here.
    669670    const double EPSILON=1e-9;
    670671    if(dontPrint) return;
     
    707708      for(ArcIt e(g);e!=INVALID;++e)
    708709        max_w=std::max(double(_arcWidths[e]),max_w);
     710      //\todo better 'epsilon' would be nice here.
    709711      if(max_w>EPSILON) {
    710712        _arcWidthScale/=max_w;
     
    716718      for(NodeIt n(g);n!=INVALID;++n)
    717719        max_s=std::max(double(_nodeSizes[n]),max_s);
     720      //\todo better 'epsilon' would be nice here.
    718721      if(max_s>EPSILON) {
    719722        _nodeScale/=max_s;
     
    871874      }
    872875      else {
     876        //\todo Verify centering
    873877        double sc= std::min((A4HEIGHT-2*A4BORDER)/bb.width(),
    874878                  (A4WIDTH-2*A4BORDER)/bb.height());
     
    903907            dvec(mycoords[g.target(*i)]-mycoords[g.source(*i)]);
    904908          double l=std::sqrt(dvec.normSquare());
     909          //\todo better 'epsilon' would be nice here.
    905910          dim2::Point<double> d(dvec/std::max(l,EPSILON));
    906911          dim2::Point<double> m;
Note: See TracChangeset for help on using the changeset viewer.