/// <summary>
 /// Gets a hash code for this <see cref="DirectedWeightedEdge{TVertex}"/>.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="DirectedWeightedEdge{TVertex}"/>.
 /// </returns>
 public override int GetHashCode()
 {
     return(SourceVertex.GetHashCode()
            ^ DestinationVertex.GetHashCode()
            ^ Weight.GetHashCode());
 }