call-graph icon indicating copy to clipboard operation
call-graph copied to clipboard

Depth

Open carlos-xpln opened this issue 1 year ago • 1 comments

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?

carlos-xpln avatar Mar 08 '23 06:03 carlos-xpln

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

beicause avatar Mar 08 '23 11:03 beicause

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.

AshkanArabim avatar May 11 '24 06:05 AshkanArabim

@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 avatar May 24 '24 14:05 jotavemonte

Hello!

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

jotavemonte avatar May 24 '24 16:05 jotavemonte