mirror of https://gitlab.com/bashrc2/epicyon
Clustering of dot diagram
parent
82a7cb2cb2
commit
61280ac6d0
8
tests.py
8
tests.py
|
@ -2831,21 +2831,21 @@ def testFunctions():
|
||||||
callGraphStr += ' node [shape=record fontsize=10 fontname="Verdana"];\n\n'
|
callGraphStr += ' node [shape=record fontsize=10 fontname="Verdana"];\n\n'
|
||||||
|
|
||||||
for modName, modProperties in modules.items():
|
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 += ' node [style=filled];\n'
|
||||||
callGraphStr += ' '
|
callGraphStr += ' '
|
||||||
for name in modProperties['functions']:
|
for name in modProperties['functions']:
|
||||||
callGraphStr += '"' + name + '" '
|
callGraphStr += '"' + name + '" '
|
||||||
callGraphStr += ';\n'
|
callGraphStr += ';\n'
|
||||||
callGraphStr += ' label = "' + modName + '";\n'
|
|
||||||
callGraphStr += ' color=blue;\n'
|
callGraphStr += ' color=blue;\n'
|
||||||
callGraphStr += ' }\n\n'
|
callGraphStr += ' }\n\n'
|
||||||
|
|
||||||
for name, properties in functionProperties.items():
|
for name, properties in functionProperties.items():
|
||||||
if not properties['calls']:
|
if not properties['calls']:
|
||||||
continue
|
continue
|
||||||
# for calledFunc in properties['calls']:
|
for calledFunc in properties['calls']:
|
||||||
# callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
|
callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
|
||||||
|
|
||||||
callGraphStr += '\n}\n'
|
callGraphStr += '\n}\n'
|
||||||
with open('epicyon.dot', 'w+') as fp:
|
with open('epicyon.dot', 'w+') as fp:
|
||||||
|
|
Loading…
Reference in New Issue