use ERB to generate the dot file
fix marking previously external nodes as internal