graph: added getEdges for vertex with tests