Added a function to return edges for a vertex