How to visualize my Python code structure or flow as a graph?

Viewed 36

I have a python function and I want to see the flow or the structure of my code as a graph. I know that it is possible in C/C++ using Graphviz. But I am not aware of a similar tool for python.

2 Answers

Same tool exists for Python, it can also be easily installed via pip by typing pip install graphviz "or Alternative downloading methods"

Here is a simple documentation with many examples that may help you as well. Link.

Related