r/pythontips • • Feb 21 '20

Searching for a tool to visualize code relationship between functions and classes

I am looking for a tool that visualizes all the connections between functions, classes and objects as a graph or something like a class diagram.

For example, in VScode or any modern IDE you can right-click on a function, class, etc name and see all its references or its definition. I want a tool that visualizes these connections so if F1 is calling F2 in its body I see a F1 as a graph node that points to F2 or something similar to this. Does such a tool exist?

32 Upvotes

4 comments sorted by

11

u/TechAlchemist Feb 21 '20

Sourcetrail is pretty much exactly that.

2

u/van_ozy Feb 21 '20

Thank you, it seems very interesting, I will look into it.

7

u/panzerinthehood Feb 21 '20

The things I learn on Reddit. ..

2

u/someoneonboard1 Feb 21 '20

Doxygen maybe. I use it all the time.