Remove duplicate XML header in GEXF/GraphML output

Addresses #1143.