callGraph icon indicating copy to clipboard operation
callGraph copied to clipboard

Add folder or file level grouping

Open pierrekttipay opened this issue 1 year ago • 3 comments

Hi @koknat this tool is so good! Thank you so much for your hard work

Though I think it would be great to add ways to create group at the file level and folder level. This can be done with dot format and has been done in typescript here: https://github.com/PSeitz/ts-dependency-graph

Can you please share your thoughts on this?

pierrekttipay avatar Apr 17 '24 04:04 pierrekttipay

Hi @pierrekttipay that sounds like a very useful addition, especially if many files are involved. I don't have any spare time to commit to callGraph currently, but I would welcome this enhancement.

koknat avatar Apr 18 '24 17:04 koknat

I do not know Perl. There is no change I can contribute to this project. Maybe a simpler task for you could be to aggregate relationships at the file level instead of method level via an option.

My call graph is quite complex because each method is considered independently in the graph. I would prefer to have an option to consider the file level.

pierrekttipay avatar Apr 18 '24 22:04 pierrekttipay

The Perl code which generates the graph is in the generate() subroutine. It uses the GraphViz CPAN module to generate the dot format: https://metacpan.org/pod/GraphViz

koknat avatar Apr 19 '24 21:04 koknat