gentry: collect edges of graph