Draws UML Class Diagram with Graphviz

When I was studying OpenNMS in 2011, I found a database schema diagram of it(the link).

It’s generated by SchemaSpy who dumps the relationships between the tables (by Foreign Keys) and generates “dot” files and use Graphviz to convert these files to graphs.

So I knew about two powerful applications:

  1. SchemaSpy (It’s console application, there is a GUI wrapper for it: SchemaSpyGUI)
  2. Graphviz.

By using Graphviz, we can draw certain types of UML diagrams, like Class Diagram.

This is the example:


And this is the Graphviz DOT script of it: Read the rest of this entry »