Skip to content

Commit

Permalink
Don't allow nodes to overlap edges or other nodes
Browse files Browse the repository at this point in the history
We allow Graphviz to reposition nodes slightly and draw curved edges to
make this possible.

Fixes #3. Also fixes some overlap seen in the
howto/separating-topic-branches.txt diagrams.
  • Loading branch information
aroben committed Apr 16, 2012
1 parent c6c870b commit 9ab51df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/asciidag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def initialize(nodes, branch_labels)
def dot
result = []
result << 'digraph {'
result << ' graph [splines=true, overlap=false];'
result << ' node [shape=circle];'
nodes.each do |node|
x, y = node.position
Expand Down

0 comments on commit 9ab51df

Please sign in to comment.