From c31b00be75bcf6a2553ec6649ab71fb6dbab1f92 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Mon, 8 Jul 2013 11:13:16 -0400 Subject: [PATCH] Fix bug making chains. The test for a forward edge shadowing a reverse edge is incorrect for cgraph. (1 April 2013) --- lib/dotgen/class2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dotgen/class2.c b/lib/dotgen/class2.c index ac814e903..acf04f726 100644 --- a/lib/dotgen/class2.c +++ b/lib/dotgen/class2.c @@ -281,7 +281,7 @@ void class2(graph_t * g) #ifndef WITH_CGRAPH if ((opp = agfindedge(g, aghead(e), agtail(e))) && (opp != e)) { #else - if ((opp = agfindedge(g, aghead(e), agtail(e))) && (AGMKOUT(opp) != e)) { + if ((opp = agfindedge(g, aghead(e), agtail(e))) && (aghead(opp) != aghead(e))) { #endif /* WITH_CGRAPH */ /* shadows a forward edge */ if (ED_to_virt(opp) == NULL) -- 2.40.0