auchenberg / dependo

Visualize your CommonJS or AMD module dependencies in a force directed graph report.
MIT License
484 stars 50 forks source link

Topological sort of the dependency graph #18

Open vijeshm opened 9 years ago

vijeshm commented 9 years ago

A top sort (a tree-like layout) of the dependency graph would be helpful. This enhancement would help users understand how the modules are structured.

I say tree-like because,

  1. the modules with no dependencies will form the root(s).
  2. cycles may be formed as well.
auchenberg commented 9 years ago

Yes. I've been thinking about adding this myself. However I don't know if it's worth spending more time on dependo, now that the webpack project has built a better analysis tool, http://webpack.github.io/analyse/#warnings

deanrad commented 9 years ago

I have used the tool madge for this purpose.