Discovered bug in list_edges.