lib/lutaml/formatter/graphviz.rb in lutaml-0.7.1 vs lib/lutaml/formatter/graphviz.rb in lutaml-0.7.2

- old
+ new

@@ -177,10 +177,10 @@ "vee" else "onormal" end # swap labels and arrows if `dir` eq to `back` - if attributes["dir"] == "back" + if attributes["dir"] == "back" && attributes["arrowtail"] != "vee" attributes["arrowhead"], attributes["arrowtail"] = [attributes["arrowtail"], attributes["arrowhead"]] attributes["headlabel"], attributes["taillabel"] = [attributes["taillabel"], attributes["headlabel"]] end