*clusters

This commit is contained in:
Costa Shulyupin 2022-11-04 08:30:45 +02:00
parent 045d204b3d
commit b85fc5b24f
1 changed files with 9 additions and 10 deletions

View File

@ -1271,16 +1271,15 @@ def doxygen_xml_files(a):
n = file + '::' + n n = file + '::' + n
files[file].append(n) files[file].append(n)
if not clusters.get(file): if not clusters.get(file):
clusters[file] = g.subgraph( with g.subgraph(
name='cluster_' + file.replace('.', '_8')) name='cluster_' + file.replace('.', '_8')) as c:
clusters[file].graph.attr( clusters[file] = c
'graph', label=file, fontsize="50") c.attr('graph', label=file, fontsize="50")
with clusters[file] as c: clusters[file].node(n)
c.node(n) for r in m.getElementsByTagName("references"):
for r in m.getElementsByTagName("references"): edges.append((n, r.firstChild.data))
edges.append((n, r.firstChild.data)) for r in m.getElementsByTagName("ref"):
for r in m.getElementsByTagName("ref"): edges.append((n, r.firstChild.data))
edges.append((n, r.firstChild.data))
for (a, b) in edges: for (a, b) in edges:
g.edge(a, b.replace('::', '__')) g.edge(a, b.replace('::', '__'))
return g return g