adding changes for gexf file generation.