Changed from set to list for the edges list