Added idListToEdges.