creating CSV for nodes and edges