minor change to support xgmml exporter.