Refactor the outputGraph method on GraphMLWriter to use smaller functions.
Refactor outputGraph in GraphMLWriter to use smaller functions.
Refactor outputGraph in GraphMLWriter to use smaller functions.