93 nodeScale(2).nodeSizes(sizes). |
93 nodeScale(2).nodeSizes(sizes). |
94 nodeShapes(shapes). |
94 nodeShapes(shapes). |
95 nodeColors(composeMap(colorSet,colors)). |
95 nodeColors(composeMap(colorSet,colors)). |
96 edgeColors(composeMap(colorSet,ecolors)). |
96 edgeColors(composeMap(colorSet,ecolors)). |
97 edgeWidthScale(.4).edgeWidths(widths). |
97 edgeWidthScale(.4).edgeWidths(widths). |
98 nodeTexts(id).nodeTextSize(3); |
98 nodeTexts(id).nodeTextSize(3). |
|
99 run(); |
99 |
100 |
100 graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10).coords(coords). |
101 graphToEps(g,"graph_to_eps_demo_out_arr.eps").scale(10). |
|
102 nodeColors(composeMap(colorSet,colors)). |
|
103 coords(coords). |
101 nodeScale(2).nodeSizes(sizes). |
104 nodeScale(2).nodeSizes(sizes). |
102 nodeShapes(shapes). |
105 nodeShapes(shapes). |
103 nodeColors(composeMap(colorSet,colors)). |
|
104 edgeColors(composeMap(colorSet,ecolors)). |
106 edgeColors(composeMap(colorSet,ecolors)). |
105 edgeWidthScale(.4).edgeWidths(widths). |
107 edgeWidthScale(.4).edgeWidths(widths). |
106 nodeTexts(id).nodeTextSize(3). |
108 nodeTexts(id).nodeTextSize(3). |
107 drawArrows().arrowWidth(1).arrowLength(1); |
109 drawArrows().arrowWidth(1).arrowLength(1). |
|
110 run(); |
108 |
111 |
109 e=g.addEdge(n1,n4); ecolors[e]=2; widths[e]=1; |
112 e=g.addEdge(n1,n4); ecolors[e]=2; widths[e]=1; |
110 e=g.addEdge(n4,n1); ecolors[e]=1; widths[e]=2; |
113 e=g.addEdge(n4,n1); ecolors[e]=1; widths[e]=2; |
111 |
114 |
112 e=g.addEdge(n1,n2); ecolors[e]=1; widths[e]=1; |
115 e=g.addEdge(n1,n2); ecolors[e]=1; widths[e]=1; |
115 e=g.addEdge(n1,n2); ecolors[e]=4; widths[e]=1; |
118 e=g.addEdge(n1,n2); ecolors[e]=4; widths[e]=1; |
116 e=g.addEdge(n1,n2); ecolors[e]=5; widths[e]=1; |
119 e=g.addEdge(n1,n2); ecolors[e]=5; widths[e]=1; |
117 e=g.addEdge(n1,n2); ecolors[e]=6; widths[e]=1; |
120 e=g.addEdge(n1,n2); ecolors[e]=6; widths[e]=1; |
118 e=g.addEdge(n1,n2); ecolors[e]=7; widths[e]=1; |
121 e=g.addEdge(n1,n2); ecolors[e]=7; widths[e]=1; |
119 |
122 |
120 graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10).coords(coords). |
123 graphToEps(g,"graph_to_eps_demo_out_par.eps").scale(10). |
|
124 nodeShapes(shapes). |
|
125 coords(coords). |
121 nodeScale(2).nodeSizes(sizes). |
126 nodeScale(2).nodeSizes(sizes). |
122 nodeShapes(shapes). |
|
123 nodeColors(composeMap(colorSet,colors)). |
127 nodeColors(composeMap(colorSet,colors)). |
124 edgeColors(composeMap(colorSet,ecolors)). |
128 edgeColors(composeMap(colorSet,ecolors)). |
125 edgeWidthScale(.4).edgeWidths(widths). |
129 edgeWidthScale(.4).edgeWidths(widths). |
126 nodeTexts(id).nodeTextSize(3). |
130 nodeTexts(id).nodeTextSize(3). |
127 enableParallel().parEdgeDist(1.5); |
131 enableParallel().parEdgeDist(1.5). |
128 |
132 run(); |
129 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10).coords(coords). |
133 |
|
134 graphToEps(g,"graph_to_eps_demo_out_par_arr.eps").scale(10). |
130 nodeScale(2).nodeSizes(sizes). |
135 nodeScale(2).nodeSizes(sizes). |
|
136 coords(coords). |
131 nodeShapes(shapes). |
137 nodeShapes(shapes). |
132 nodeColors(composeMap(colorSet,colors)). |
138 nodeColors(composeMap(colorSet,colors)). |
133 edgeColors(composeMap(colorSet,ecolors)). |
139 edgeColors(composeMap(colorSet,ecolors)). |
134 edgeWidthScale(.3).edgeWidths(widths). |
140 edgeWidthScale(.3).edgeWidths(widths). |
135 nodeTexts(id).nodeTextSize(3). |
141 nodeTexts(id).nodeTextSize(3). |
136 enableParallel().parEdgeDist(1). |
142 enableParallel().parEdgeDist(1). |
137 // hideNodes(). |
143 // hideNodes(). |
138 drawArrows().arrowWidth(1).arrowLength(1); |
144 drawArrows().arrowWidth(1).arrowLength(1). |
|
145 run();; |
139 } |
146 } |