Skip to content
snipsnipsnip edited this page Oct 22, 2013 · 5 revisions

How does it work?

Dotdep searches file names within codes.

This approach have some effect for most programming languages that separates modules as files.

see natto slide

Usage

dotdep **/*.rb | dot -Tpng -ofoo.png

if you like (transitively) simplified diagram:

dotdep -rrr **/*.rb | dot -Tpng -ofoo.png

if you like circle diagram:

dotdep **/*.rb | circo -Tpng -ofoo.png

Examples

example without fan-in/fan-out counter

without fan-in/fan-out counter

example with fan-in/fan-out counter

with fan-in/fan-out counter

example with fan-in/fan-out counter clustered with folder name

example with fan-in/fan-out counter clustered with folder name

example with circo

example with circo

example with fan-in/fan-out counter with soft reduction (-r)

example with tred

example with fan-in/fan-out counter with soft reduction 2 (-rr)

example with tred

example with fan-in/fan-out counter with hard reduction (-rrr)

example with tred