accept just a set of edges without nodes being required,
computing the nodes in this case.