Make use of the already written functions

This way `out-edges` is not dependant on the graph representation.