dag: Use a hybrid method for branchy line drawing
commit82c8cbe84f6ad7327d56db977fce3475470552d4
authorDavid Aguilar <davvid@gmail.com>
Sun, 11 Mar 2012 02:54:06 +0000 (10 18:54 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 11 Mar 2012 02:54:06 +0000 (10 18:54 -0800)
treed9122d84d0d3f215c7b0fc735d27607eb55d5823
parent9e65c7bb7dc8b1c29fb60caea03d097b187c9b27
dag: Use a hybrid method for branchy line drawing

Go back to Uri's original method for deciding when to
change edge colors.  This avoids the triangular-like sections
with the same color.

Use the diagonal {source,dest}.x() check for choosing between
dotted and solid lines to ensure that diagonal lines are always
solid.  Diagonal lines will be anti-aliased so this avoids using
dotted lines for them.

Inspired-by: @ugtar in a7e3ff72c2b948d7f936f9e56e52eeac26cdeb34
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/dag/view.py