Example #1
0
 /// <summary>
 /// Check if the edges are disjoint with respect to their reduced
 /// vertices. That is, excluding the endpoints, no reduced vertices are
 /// shared.
 /// </summary>
 /// <param name="other">another edge</param>
 /// <returns>the edges reduced vertices are disjoint.</returns>
 public bool Disjoint(PathEdge other)
 {
     return(!BitArrays.Intersects(this.xs, other.xs));
 }
Example #2
0
 public bool Intersects(PathEdge e)
 {
     return(BitArrays.Intersects(e.xs, xs));
 }