Code to generate a dynamic network in gexf, for Gephi