beicause / call-graph

Generate call graph for vscode in svg or graphviz dot.
Apache License 2.0
73 stars 17 forks source link

Depth #12

Closed carlos-xpln closed 1 month ago

carlos-xpln commented 1 year ago

Hello there. I have another question / suggestion:

Is there a way to manage the number of levels that you want to go trough? I mean... I have a use case where I only want to generate the incoming call-graph of all the direct (one level) methods, with their respective file subgraphs?

beicause commented 1 year ago

Sounds good. But I don't have much time to improve this project. PR welcome.

AshkanArabim commented 1 month ago

Just to add to this (for anyone who eventually decides to implement this) maybe also add an option to limit the graph depth to the current project (vscode directory)?

For example, when I generate an outgonig graph from a function, I have no interest in seeing Python's built-in functions such as print and cast.

jotavemonte commented 1 month ago

@AshkanArabim Hey, you can use the .callgraphignore file to achieve what you want. You just need to ignore your Python path and maybe a virtual environment if you are using it.

Check: https://github.com/beicause/call-graph/issues/16#issuecomment-1911309703 And: https://github.com/beicause/call-graph/issues/14#issue-1696491742

jotavemonte commented 1 month ago

Hello!

I've opened a PR with this suggestion #23 cc @beicause