fromCollection(edges) implement and tested