MCPcopy Create free account
hub / github.com/Kitware/VTK / MakeEdgeList

Function MakeEdgeList

Utilities/Maintenance/VisualizeModuleDependencies.py:174–187  ·  view source on GitHub ↗

Return a set that represents the edges in the tree.

(t)

Source from the content-addressed store, hash-verified

172 return modules
173
174def MakeEdgeList(t):
175 '''
176 Return a set that represents the edges in the tree.
177 '''
178 edgeList = set()
179 for k, v in t.iteritems():
180 subKeys = v.keys()
181 if subKeys:
182 for kk in subKeys:
183 edgeList.add((k, kk))
184 edg = MakeEdgeList(v)
185 if edg:
186 edgeList.update(edg)
187 return edgeList
188
189def MakeGraph(t, parent='', level=0):
190 '''

Callers 1

MakeGraphFunction · 0.85

Calls 4

setFunction · 0.50
keysMethod · 0.45
addMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected