From 669302700af02809df5a41bd95b208de80a482ae Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 17 Mar 2023 13:37:36 -0400 Subject: [PATCH] tamer: build-aux/asg-ontviz: Vary arrowhead for cross edges This makes it more visually apparent, when looking directly at a node, whether an edge could represent a tree edge. Dynamic edges could be tree edges, so I left those solid; that's the more important visual indicator that I'm interested in, and it's disambiguated by the dashed line. DEV-13708 --- tamer/build-aux/asg-ontviz.awk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tamer/build-aux/asg-ontviz.awk b/tamer/build-aux/asg-ontviz.awk index 2f9e4b2a..9faba0f2 100644 --- a/tamer/build-aux/asg-ontviz.awk +++ b/tamer/build-aux/asg-ontviz.awk @@ -123,13 +123,13 @@ block_src && $NF ~ /\w+,$/ { attrs = "" switch (ty) { case "tree": - attrs="[style=solid]"; + attrs="[style=solid,arrowhead=normal]"; break; case "cross": - attrs="[style=dotted]"; + attrs="[style=dotted,arrowhead=open]"; break; case "dyn": - attrs="[style=dashed]"; + attrs="[style=dashed,arrowhead=normal]"; break; } @@ -143,7 +143,7 @@ block_src && $NF ~ /\w+,$/ { # the source object is right-aligned and target is left-aligned, # so that `Src -> Target` can be easily read regardless of the width # of the objects involved. - printf " %5s -> %-5s %14s; # %s edge\n", block_src, $NF, attrs, ty + printf " %5s -> %-5s %32s; # %s edge\n", block_src, $NF, attrs, ty found_rels++ }