Exemple #1
0
 public void LockAdd(Edge e)
 {
     lock (Holder)
         Holder.Add(e);
 }
Exemple #2
0
 /// <summary>
 ///     Edges equal <==> Points are equaled.
 /// </summary>
 /// <param name="x">
 /// </param>
 /// <param name="y">
 /// </param>
 /// <returns></returns>
 public static bool DeepEquals(Edge x, Edge y)
 {
     return(x.a.Equals(y.a) && x.b.Equals(y.b));
 }
Exemple #3
0
 public static double CompareID(Edge x, Edge y)
 {
     return(x.ID - y.ID);
 }
Exemple #4
0
 public static int CompareWeight(Edge x, Edge y)
 {
     return(Math.Sign(x.cost - y.cost));
 }