graph: added getEdges with tests