digraph g { node [shape = rect]; Exception; Error [style="dashed"]; RuntimeException [style="dashed"]; Throwable -> {Exception Error}; Exception -> RuntimeException; { node [label="...",style=dashed]; a [style=""]; Exception -> a; Error -> b; RuntimeException -> c; } }