예제 #1
0
 public void LockAdd(Edge e)
 {
     lock (Holder)
         Holder.Add(e);
 }
예제 #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));
 }
예제 #3
0
 public static double CompareID(Edge x, Edge y)
 {
     return(x.ID - y.ID);
 }
예제 #4
0
 public static int CompareWeight(Edge x, Edge y)
 {
     return(Math.Sign(x.cost - y.cost));
 }