/// <summary> /// Creates an instance of the edge. /// </summary> /// <param name="tail">The tail vertex.</param> /// <param name="head">The head vertex.</param> /// <param name="directed">Indicates if the edge is directed (true) or undirected (false).</param> /// <param name="weight">The weight of the edge. Default is 0 (unweighted).</param> private PureObjectEdge(PureObjectVertex <T> tail, PureObjectVertex <T> head, bool directed = false, double weight = 0) { EndPoints = new Tuple <PureObjectVertex <T>, PureObjectVertex <T> >(tail, head); _directed = directed; Weight = weight; SetId(); }
/// <summary> /// Compares to. /// </summary> /// <param name="other">The other.</param> /// <returns>System.Int32.</returns> /// <autogeneratedoc /> int IComparable <PureObjectVertex <T> > .CompareTo(PureObjectVertex <T> other) { return(Value.CompareTo(other.Value)); }
/// <summary> /// Compares to. /// </summary> /// <param name="other">The other.</param> /// <returns>System.Int32.</returns> /// <autogeneratedoc /> public int CompareTo(PureObjectVertex <T> other) { return(Value.CompareTo(other.Value)); }