added writing graph to .gexf format for use with gephi