chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6a7caa9
)
Improve graph layouts a bit
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 8 Sep 2009 16:11:17 +0000
(17:11 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Tue, 8 Sep 2009 16:11:17 +0000
(17:11 +0100)
yarrg/ocean-topology-graph
patch
|
blob
|
history
diff --git
a/yarrg/ocean-topology-graph
b/yarrg/ocean-topology-graph
index 55d15d97e8f5b20d530360c1fde16144cbea77f9..e609e35778188dc147390cd3a451dc315c95da62 100755
(executable)
--- a/
yarrg/ocean-topology-graph
+++ b/
yarrg/ocean-topology-graph
@@
-20,7
+20,9
@@
$dbh->disconnect();
#print Dumper($results);
print "strict graph $ocean {\n";
#print Dumper($results);
print "strict graph $ocean {\n";
-#print " nodesep=10;\n";
+print " splines=true;\n";
+print " nslimit=10;\n";
+print " mclimit=10;\n";
foreach my $row (@$islands) {
my ($id,$str) = @$row;
foreach my $row (@$islands) {
my ($id,$str) = @$row;
@@
-29,8
+31,8
@@
foreach my $row (@$islands) {
}
foreach my $row (@$routes) {
my ($ia,$ib,$dist) = @$row;
}
foreach my $row (@$routes) {
my ($ia,$ib,$dist) = @$row;
- print " n$ia -- n$ib [
len=2
, label=$dist ];\n";
- #len=$dist, minlen=$dist,
weight=".(1.0/$dist).", len=".($dist*0.25+1)."
,
+ print " n$ia -- n$ib [
w=".(1.0/($dist*$dist)).", len=".(0.5*$dist+1)."
, label=$dist ];\n";
+ #len=$dist, minlen=$dist,
,
,
#w=".(1.0/$dist).",
}
#w=".(1.0/$dist).",
}