COIN-OR::LEMON - Graph Library

Changeset 132:50ff949140fa in lemon


Ignore:
Timestamp:
04/14/08 12:23:56 (17 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Scale the node sizes and arc widths in a more sensible way

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • demo/graph_to_eps_demo.cc

    r129 r132  
    200200    coords(hcoords).
    201201    absoluteNodeSizes().absoluteArcWidths().
    202     nodeScale(45).
     202    nodeScale(.45).
    203203    distantColorNodeTexts().
    204204    //    distantBWNodeTexts().
  • lemon/graph_to_eps.h

    r131 r132  
    151151                          bool _pros=false) :
    152152    g(_g), os(_os),
    153     _coords(dim2::Point<double>(1,1)), _nodeSizes(.01), _nodeShapes(0),
     153    _coords(dim2::Point<double>(1,1)), _nodeSizes(1), _nodeShapes(0),
    154154    _nodeColors(WHITE), _arcColors(BLACK),
    155155    _arcWidths(1.0), _arcWidthScale(0.003),
    156     _nodeScale(1.0), _xBorder(10), _yBorder(10), _scale(1.0),
     156    _nodeScale(.01), _xBorder(10), _yBorder(10), _scale(1.0),
    157157    _nodeBorderQuotient(.1),
    158158    _drawArrows(false), _arrowLength(1), _arrowWidth(0.3),
     
    497497  /// \sa nodeSizes()
    498498  /// \sa autoNodeScale()
    499   GraphToEps<T> &nodeScale(double d) {_nodeScale=d;return *this;}
     499  GraphToEps<T> &nodeScale(double d=.01) {_nodeScale=d;return *this;}
    500500  ///Turns on/off the automatic node width scaling.
    501501
     
    550550  /// arc withs will be scaled in such a way that the greatest width will be
    551551  /// equal to \c d.
    552   GraphToEps<T> &arcWidthScale(double d) {_arcWidthScale=d;return *this;}
     552  GraphToEps<T> &arcWidthScale(double d=.003) {_arcWidthScale=d;return *this;}
    553553  ///Turns on/off the automatic arc width scaling.
    554554
Note: See TracChangeset for help on using the changeset viewer.