I would like to create a display of classes that shows their dependencies, like this one from exercism.org.

We need an algorithm to lay out the items, and that is a hard thing to do! There are libraries out there that will help take a shortcut.
Graphviz is a classic tool for building graphs. You specify the nodes and connections and it renders it for you.
Topics