equalToVertices method
For checking if an Edge contains the source and target Vertices. This method has a directionality. source and target are not interchangeable.
Implementation
@override
bool equalToVertices(Vertex source, Vertex target) =>
this.source.equalsById(source) && this.target.equalsById(target);