Get GraphML file writing working