Group by folder
Can it group files by parent folder in generated image?
Similar to #181 ?
I wrote a filter that does that:
https://github.com/pahen/madge/issues/181#issuecomment-436449386
@joebowbeer I mean with --image option
@goodmind pipe the results through a transformer (such as mine) and then back into madge via the
--stdin option:
madge --json app.js | repdeps -x '([^\/]*).*' -r '$1' | madge --stdin --image graph.svg
@joebowbeer Yeah, similar to this, but actually show files in folder as subgraph
This would be very useful -- for projects larger than a dozen files the graph becomes unreadable, because the nodes are placed chaotically, so it's hard for a human to follow the links. Files in a folder are naturally grouped together, and it would greatly increase "at a glance" readability of the generated image.
For example, dependency-cruiser uses graphviz's clusters to do that, see examples here.