From 61280ac6d03e905a8c81a6eb64d8a1d6c894be3f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Dec 2020 23:26:09 +0000 Subject: [PATCH] Clustering of dot diagram --- tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index d637642b4..5bd93560e 100644 --- a/tests.py +++ b/tests.py @@ -2831,21 +2831,21 @@ def testFunctions(): callGraphStr += ' node [shape=record fontsize=10 fontname="Verdana"];\n\n' for modName, modProperties in modules.items(): - callGraphStr += ' subgraph ' + modName + ' {\n' + callGraphStr += ' subgraph cluster_' + modName + ' {\n' + callGraphStr += ' label = "' + modName + '";\n' callGraphStr += ' node [style=filled];\n' callGraphStr += ' ' for name in modProperties['functions']: callGraphStr += '"' + name + '" ' callGraphStr += ';\n' - callGraphStr += ' label = "' + modName + '";\n' callGraphStr += ' color=blue;\n' callGraphStr += ' }\n\n' for name, properties in functionProperties.items(): if not properties['calls']: continue - # for calledFunc in properties['calls']: - # callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' + for calledFunc in properties['calls']: + callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' callGraphStr += '\n}\n' with open('epicyon.dot', 'w+') as fp: