From fe1bcb59fefc5f377e20bc9990d026040716d83a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 26 Mar 2019 17:50:00 -0500 Subject: [PATCH] Flip arrows in dep graph --- pymbolic/imperative/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymbolic/imperative/utils.py b/pymbolic/imperative/utils.py index 70a2813..fa13d57 100644 --- a/pymbolic/imperative/utils.py +++ b/pymbolic/imperative/utils.py @@ -79,6 +79,7 @@ def get_dot_dependency_graph( ) lines = list(preamble_hook()) + lines.append("rankdir=BT;") dep_graph = {} # maps (oriented) edge onto annotation string @@ -121,7 +122,7 @@ def get_dot_dependency_graph( for stmt_1 in dep_graph: for stmt_2 in dep_graph.get(stmt_1, set()): - lines.append("%s -> %s" % (stmt_2, stmt_1)) + lines.append("%s -> %s" % (stmt_1, stmt_2)) for (stmt_1, stmt_2), annot in six.iteritems(annotation_dep_graph): lines.append( -- GitLab