src/demo/graph_to_eps_demo.cc
changeset 1091 c756973cd53c
parent 1088 358526a620f8
child 1103 f196dc4f1b31
     1.1 --- a/src/demo/graph_to_eps_demo.cc	Thu Jan 20 10:24:38 2005 +0000
     1.2 +++ b/src/demo/graph_to_eps_demo.cc	Thu Jan 20 14:16:40 2005 +0000
     1.3 @@ -95,16 +95,19 @@
     1.4      nodeColors(composeMap(colorSet,colors)).
     1.5      edgeColors(composeMap(colorSet,ecolors)).
     1.6      edgeWidthScale(.4).edgeWidths(widths).
     1.7 -    nodeTexts(id).nodeTextSize(3);
     1.8 +    nodeTexts(id).nodeTextSize(3).
     1.9 +    run();
    1.10  
    1.11 -  graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).coords(coords).
    1.12 +  graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).
    1.13 +    nodeColors(composeMap(colorSet,colors)).
    1.14 +    coords(coords).
    1.15      nodeScale(2).nodeSizes(sizes).
    1.16      nodeShapes(shapes).
    1.17 -    nodeColors(composeMap(colorSet,colors)).
    1.18      edgeColors(composeMap(colorSet,ecolors)).
    1.19      edgeWidthScale(.4).edgeWidths(widths).
    1.20      nodeTexts(id).nodeTextSize(3).
    1.21 -    drawArrows().arrowWidth(1).arrowLength(1);
    1.22 +    drawArrows().arrowWidth(1).arrowLength(1).
    1.23 +    run();
    1.24  
    1.25    e=g.addEdge(n1,n4); ecolors[e]=2; widths[e]=1;
    1.26    e=g.addEdge(n4,n1); ecolors[e]=1; widths[e]=2;
    1.27 @@ -117,17 +120,20 @@
    1.28    e=g.addEdge(n1,n2); ecolors[e]=6; widths[e]=1;
    1.29    e=g.addEdge(n1,n2); ecolors[e]=7; widths[e]=1;
    1.30  
    1.31 -  graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).coords(coords).
    1.32 +  graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).
    1.33 +    nodeShapes(shapes).
    1.34 +    coords(coords).
    1.35      nodeScale(2).nodeSizes(sizes).
    1.36 -    nodeShapes(shapes).
    1.37      nodeColors(composeMap(colorSet,colors)).
    1.38      edgeColors(composeMap(colorSet,ecolors)).
    1.39      edgeWidthScale(.4).edgeWidths(widths).
    1.40      nodeTexts(id).nodeTextSize(3).
    1.41 -    enableParallel().parEdgeDist(1.5);
    1.42 -
    1.43 -  graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).coords(coords).
    1.44 +    enableParallel().parEdgeDist(1.5).
    1.45 +    run();
    1.46 +  
    1.47 +  graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).
    1.48      nodeScale(2).nodeSizes(sizes).
    1.49 +    coords(coords).
    1.50      nodeShapes(shapes).
    1.51      nodeColors(composeMap(colorSet,colors)).
    1.52      edgeColors(composeMap(colorSet,ecolors)).
    1.53 @@ -135,5 +141,6 @@
    1.54      nodeTexts(id).nodeTextSize(3).
    1.55      enableParallel().parEdgeDist(1).
    1.56      //    hideNodes().
    1.57 -    drawArrows().arrowWidth(1).arrowLength(1);
    1.58 +    drawArrows().arrowWidth(1).arrowLength(1).
    1.59 +    run();;
    1.60  }