Use withEdges