edgeExists method
Returns true if there is an edge pointing from
vertex to connectedVertex. Returns false otherwise.
Implementation
@override
bool edgeExists(T vertex, T connectedVertex) {
if (_edges.containsKey(vertex) &&
_edges[vertex]!.containsKey(connectedVertex)) {
return true;
}
return false;
}