Subject: | Cannot use "splines" in constructor config. |
In the manual of "twopi", it is possible to add a "splines=true" graph attribute
to avoid drawing edges on vertices. However, GraphViz.pm 2.02 does not support
such config key.
Attached a patch to GraphViz.pm to let it support an extra "splines" attribute key.
-Gugod
--- GraphViz.pm.orig Sat Feb 5 17:44:39 2005
+++ GraphViz.pm Sat Feb 5 17:47:55 2005
@@ -361,6 +361,8 @@
$self->{BGCOLOR} = $config->{bgcolor};
}
+ $self->{SPLINES} = $config->{splines} if (exists $config->{splines});
+
$self->{RANK_DIR} = $config->{rankdir} if (exists $config->{rankdir});
$self->{WIDTH} = $config->{width} if (exists $config->{width});
@@ -988,6 +990,9 @@
my $graph_type = $self->{DIRECTED} ? 'digraph' : 'graph';
$dot .= "$graph_type test {\n";
+
+ # spline-edge
+ $dot .= "\tsplines=true;\n" if $self->{SPLINES};
# the direction of the graph
$dot .= "\trankdir=LR;\n" if $self->{RANK_DIR};