Skip Menu |

This queue is for tickets about the GraphViz CPAN distribution.

Report information
The Basics
Id: 11388
Status: resolved
Priority: 0/
Queue: GraphViz

People
Owner: Nobody in particular
Requestors: gugod [...] gugod.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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};
This issue is fixed in GraphViz2 V 1.00. The new interface allows you to pass any options to your chosen dot/whatever program. There're won't be any further development on GraphViz.