visualise java class imports using graphviz

java-graphviz

https://github.com/zknill/java-graphviz

I wrote this tool to visualise the imports and dependencies between java classes.

Wikipedia has a great article on cohesion and couple of code:

In this article there’s this image:

https://upload.wikimedia.org/wikipedia/commons/0/09/CouplingVsCohesion.svg#center

The image show good and bad cohesion and coupling. It’s easy to understand these two in this image, but it’s much harder to understand them in code. I wrote the java-graphviz tool to help visualise the cohesion and coupling of our codebases.

The tool can create a graph like this:

1
java-graphviz -dir parser/fixtures/ -colorMap="parser.fixtures.single.MyClass=red"

https://raw.githubusercontent.com/zknill/java-graphviz/main/parser-test-output.png#center

See the project README.md for more details.