Пример #1
0
        public void CheckConnected()
        {
            UfEager ufEager = new UfEager(10);

            Assert.IsFalse(ufEager.Connected(0, 1));
            ufEager.Union(0, 1);
            Assert.IsTrue(ufEager.Connected(0, 1));
        }
Пример #2
0
        public void CheckNotConnected()
        {
            UfEager ufEager = new UfEager(10);

            Assert.IsFalse(ufEager.Connected(0, 1));
        }