diff -r 5b7ca75297b5 -r caa13d291528 src/demo/graph_to_eps_demo.cc --- a/src/demo/graph_to_eps_demo.cc Sun Jan 16 22:34:51 2005 +0000 +++ b/src/demo/graph_to_eps_demo.cc Tue Jan 18 12:02:27 2005 +0000 @@ -67,14 +67,15 @@ ListGraph::NodeMap coords(g); ListGraph::NodeMap sizes(g); ListGraph::NodeMap colors(g); + ListGraph::NodeMap shapes(g); ListGraph::EdgeMap ecolors(g); ListGraph::EdgeMap widths(g); - coords[n1]=Xy(50,50); sizes[n1]=1; colors[n1]=1; - coords[n2]=Xy(50,70); sizes[n2]=2; colors[n2]=2; - coords[n3]=Xy(70,70); sizes[n3]=1; colors[n3]=3; - coords[n4]=Xy(70,50); sizes[n4]=2; colors[n4]=4; - coords[n5]=Xy(85,60); sizes[n5]=3; colors[n5]=5; + coords[n1]=Xy(50,50); sizes[n1]=1; colors[n1]=1; shapes[n1]=0; + coords[n2]=Xy(50,70); sizes[n2]=2; colors[n2]=2; shapes[n2]=0; + coords[n3]=Xy(70,70); sizes[n3]=1; colors[n3]=3; shapes[n3]=0; + coords[n4]=Xy(70,50); sizes[n4]=2; colors[n4]=4; shapes[n4]=1; + coords[n5]=Xy(85,60); sizes[n5]=3; colors[n5]=5; shapes[n5]=0; Edge e; @@ -90,6 +91,7 @@ graphToEps(g,"graph_to_eps_demo_out.eps").scale(10).coords(coords). nodeScale(2).nodeSizes(sizes). + nodeShapes(shapes). nodeColors(composeMap(colorSet,colors)). edgeColors(composeMap(colorSet,ecolors)). edgeWidthScale(.4).edgeWidths(widths). @@ -97,6 +99,7 @@ graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).coords(coords). nodeScale(2).nodeSizes(sizes). + nodeShapes(shapes). nodeColors(composeMap(colorSet,colors)). edgeColors(composeMap(colorSet,ecolors)). edgeWidthScale(.4).edgeWidths(widths). @@ -116,6 +119,7 @@ graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).coords(coords). nodeScale(2).nodeSizes(sizes). + nodeShapes(shapes). nodeColors(composeMap(colorSet,colors)). edgeColors(composeMap(colorSet,ecolors)). edgeWidthScale(.4).edgeWidths(widths). @@ -124,10 +128,12 @@ graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).coords(coords). nodeScale(2).nodeSizes(sizes). + nodeShapes(shapes). nodeColors(composeMap(colorSet,colors)). edgeColors(composeMap(colorSet,ecolors)). edgeWidthScale(.3).edgeWidths(widths). nodeTexts(id).nodeTextSize(3). enableParallel().parEdgeDist(1). + // hideNodes(). drawArrows().arrowWidth(1).arrowLength(1); }