/// <inheritdoc/>
 public bool Equals(AdjacencyListsGraph <V, E> other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(IsEqual(other));
 }
 /// <summary>
 /// Determines value equality.
 /// </summary>
 /// <param name="other">The other graph to compare against.</param>
 /// <returns>True if values are equal, otherwise false.</returns>
 protected virtual bool IsEqual(AdjacencyListsGraph <V, E> other)
 {
     return(Vertices.SequenceEqual(other.Vertices) &&
            Edges.SequenceEqual(other.Edges));
 }