equalToVertices method

  1. @override
bool equalToVertices(
  1. Vertex source,
  2. Vertex target
)
override

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);