public virtual void Len() { Assert.AreEqual(2, new SimpleEdge(0, 1).Length); var e = new ReducedEdge(new SimpleEdge(0, 1), new SimpleEdge(2, 1), 1); var f = new ReducedEdge(new SimpleEdge(2, 3), new SimpleEdge(3, 4), 3); Assert.AreEqual(3, e.Length); Assert.AreEqual(3, f.Length); Assert.AreEqual(5, new ReducedEdge(e, f, 2).Length); }
public virtual void Disjoint() { var e = new ReducedEdge(new SimpleEdge(0, 1), new SimpleEdge(2, 1), 1); var f = new ReducedEdge(new SimpleEdge(2, 3), new SimpleEdge(3, 4), 3); Assert.IsTrue(e.Disjoint(f)); Assert.IsTrue(f.Disjoint(e)); Assert.IsFalse(e.Disjoint(e)); Assert.IsFalse(f.Disjoint(f)); }