Physics Derivation Graph navigation Sign in

static analysis of function dependency in Python

Published 2018-07-04T18:40:00.002Z by Physics Derivation Graph

With 1400 lines of Python, I wanted to find a way to visualize the static dependencies of functions internal to the script

I looked at PyCallGraph but it only supports dynamic call graphs. In addition to Pyan and Snakefood, I found a blog post that included an AST parser as a single file.

python -i ../../proofofconcept/v4_file_per_expression/bin/ >

add "overlap=false;" in the file

neato -Tpng -o graph.png

which yields