implemented graph.getEdges(key, value)