Created method to get all the outgoing edges.
Fixed print method