pyan icon indicating copy to clipboard operation
pyan copied to clipboard

Feature Suggestion: Customize depth (level) of generated graph

Open z0gSh1u opened this issue 4 years ago • 0 comments

pyan now visits down to the level of functions. If you can provide a parameter called depth or level, which enables users to get a package (or module) level of the graph generated, then pyan will also become a module dependency analysis tool.

To achieve this, take Graphviz .dot format file for example, we just need to remove the last double low dash __xxx part, and remove duplicate edges.

Before:

before

After:

after

z0gSh1u avatar Nov 26 '21 13:11 z0gSh1u