Skip to content

Commit facc0a6

Browse files
committed
Changing dot to neato
And also avoiding overlap. Ideally, it should help with #246. If it's OK with everyone, close it.
1 parent 9db0df2 commit facc0a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Perl6/TypeGraph/Viz.pm6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Perl6::TypeGraph::Viz {
5656
method as-dot (:$size) {
5757
my @dot;
5858
@dot.append: digraph "perl6-type-graph" \{\n rankdir=$.rank-dir;\n splines=polyline;\n;
59+
@dot.append: " overlap=false; ";
5960
@dot.append: size="$size"\n if $size;
6061

6162
if $.dot-hints -> $hints {
@@ -101,7 +102,7 @@ class Perl6::TypeGraph::Viz {
101102
}
102103
die "bad filename '$file'" unless $file;
103104

104-
my $dot = Proc::Async.new(:w, 'dot', '-T', $format, '-o', $file);
105+
my $dot = Proc::Async.new(:w, 'neato', '-T', $format, '-o', $file);
105106
my $promise = $dot.start;
106107
await($dot.write(self.as-dot(:$size).encode));
107108
$dot.close-stdin;

0 commit comments

Comments
 (0)