... | ... |
@@ -696,12 +696,13 @@ |
696 | 696 |
"Nodes are located according to a two-dim gauss distribution", |
697 | 697 |
gauss_d) |
698 | 698 |
.optionGroup("dist", "gauss") |
699 | 699 |
// .mandatoryGroup("dist") |
700 | 700 |
.onlyOneGroup("dist") |
701 | 701 |
.boolOption("eps", "Also generate .eps output (prefix.eps)") |
702 |
.boolOption("nonodes", "Draw the edges only in the generated .eps") |
|
702 | 703 |
.boolOption("dir", "Directed digraph is generated (each arcs are replaced by two directed ones)") |
703 | 704 |
.boolOption("2con", "Create a two connected planar digraph") |
704 | 705 |
.optionGroup("alg","2con") |
705 | 706 |
.boolOption("tree", "Create a min. cost spanning tree") |
706 | 707 |
.optionGroup("alg","tree") |
707 | 708 |
.boolOption("tsp", "Create a TSP tour") |
... | ... |
@@ -816,13 +817,13 @@ |
816 | 817 |
tlen+=sqrt((coords[g.v(e)]-coords[g.u(e)]).normSquare()); |
817 | 818 |
std::cout << "Total arc length : " << tlen << std::endl; |
818 | 819 |
|
819 | 820 |
if(ap["eps"]) |
820 | 821 |
graphToEps(g,prefix+".eps").scaleToA4(). |
821 | 822 |
scale(600).nodeScale(.005).arcWidthScale(.001).preScale(false). |
822 |
coords(coords).run(); |
|
823 |
coords(coords).hideNodes(ap.given("nonodes")).run(); |
|
823 | 824 |
|
824 | 825 |
if(ap["dir"]) |
825 | 826 |
DigraphWriter<ListGraph>(g,prefix+".lgf"). |
826 | 827 |
nodeMap("coordinates_x",scaleMap(xMap(coords),600)). |
827 | 828 |
nodeMap("coordinates_y",scaleMap(yMap(coords),600)). |
828 | 829 |
run(); |
0 comments (0 inline)