COIN-OR::LEMON - Graph Library

Changeset 2172:4b25e7003868 in lemon-0.x for demo/topology_demo.cc


Ignore:
Timestamp:
08/10/06 12:18:04 (13 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2887
Message:
  • Change ColorSet? to Palette
  • Minor change in graph_orientation demo.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/topology_demo.cc

    r2116 r2172  
    5757    run();
    5858 
    59   ColorSet colorSet;
     59  Palette palette;
    6060
    6161  Graph::NodeMap<int> compMap(graph);
     
    6565    coords(coords).scaleToA4().enableParallel().
    6666    parEdgeDist(20.0).edgeWidthScale(2.0).nodeScale(20.0).
    67     nodeColors(composeMap(colorSet, compMap)).run();
     67    nodeColors(composeMap(palette, compMap)).run();
    6868
    6969  std::cout << "Result: connected_components.eps" << std::endl;
     
    8282    run();
    8383 
    84   ColorSet colorSet;
     84  Palette palette;
    8585
    8686  Graph::NodeMap<int> compMap(graph);
     
    9393    drawArrows().arrowWidth(10.0).arrowLength(10.0).
    9494    parEdgeDist(20.0).edgeWidthScale(2.0).nodeScale(20.0).
    95     nodeColors(composeMap(colorSet, compMap)).
     95    nodeColors(composeMap(palette, compMap)).
    9696    edgeColors(composeMap(functorMap(&color), cutMap)).run();
    9797
     
    112112    run();
    113113
    114   ColorSet colorSet;
     114  Palette palette;
    115115
    116116  Graph::UEdgeMap<int> compMap(graph);
     
    122122    coords(coords).scaleToA4().enableParallel().
    123123    parEdgeDist(20.0).edgeWidthScale(5.0).nodeScale(20.0).
    124     edgeColors(composeMap(colorSet, compMap)).
     124    edgeColors(composeMap(palette, compMap)).
    125125    nodeColors(composeMap(functorMap(&color), cutMap)).
    126126    run();
     
    142142    run();
    143143 
    144   ColorSet colorSet;
     144  Palette palette;
    145145
    146146  Graph::NodeMap<int> compMap(graph);
     
    152152    coords(coords).scaleToA4().enableParallel().
    153153    parEdgeDist(20.0).edgeWidthScale(2.0).nodeScale(20.0).
    154     nodeColors(composeMap(colorSet, compMap)).
     154    nodeColors(composeMap(palette, compMap)).
    155155    edgeColors(composeMap(functorMap(&color), cutMap)).run();
    156156 
     
    171171    run();
    172172 
    173   ColorSet colorSet;
     173  Palette palette;
    174174
    175175  Graph::NodeMap<bool> partMap(graph);
Note: See TracChangeset for help on using the changeset viewer.