collect single- instead of multi-edges