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