making an edges collection for graph viz