Esempio n. 1
0
        public virtual void Paths_bicyclo()
        {
            int[][]         bicyclo   = Bicyclo;
            EssentialCycles essential = new EssentialCycles(bicyclo);

            int[][] paths = essential.GetPaths();
            Assert.IsTrue(Compares.AreDeepEqual(Array.Empty <object[]>(), paths));
        }
Esempio n. 2
0
        public virtual void Paths_cyclophane_odd()
        {
            int[][]         cyclophane_even = CyclophaneEven;
            EssentialCycles essential       = new EssentialCycles(cyclophane_even);

            int[][] paths    = essential.GetPaths();
            int[][] expected = new int[][] { new[] { 3, 2, 1, 0, 5, 4, 3 } };
            Assert.IsTrue(Compares.AreDeepEqual(expected, paths));
        }
Esempio n. 3
0
        public virtual void Paths_anthracene()
        {
            int[][]         anthracene = Anthracene;
            EssentialCycles essential  = new EssentialCycles(anthracene);

            int[][] paths    = essential.GetPaths();
            int[][] expected = new int[][] { new[] { 5, 0, 1, 2, 3, 4, 5 }, new[] { 9, 6, 5, 4, 7, 8, 9 }, new[] { 9, 8, 10, 11, 12, 13, 9 } };
            Assert.IsTrue(Compares.AreOrderLessDeepEqual(expected, paths));
        }
Esempio n. 4
0
        public virtual void Paths_napthalene()
        {
            int[][]         napthalene = Naphthalene;
            EssentialCycles essential  = new EssentialCycles(napthalene);

            int[][] paths    = essential.GetPaths();
            int[][] expected = new int[][] { new[] { 5, 0, 1, 2, 3, 4, 5 }, new[] { 5, 4, 7, 8, 9, 6, 5 } };
            Assert.IsTrue(Compares.AreDeepEqual(expected, paths));
        }
Esempio n. 5
0
        public virtual void Paths_norbornane()
        {
            int[][]         norbornane = Norbornane;
            EssentialCycles essential  = new EssentialCycles(norbornane);

            int[][] paths = essential.GetPaths();
            Assert.AreEqual(2, paths.Length);
            int[][] expected = new int[][] { new[] { 5, 6, 2, 1, 0, 5 }, new[] { 5, 6, 2, 3, 4, 5 } };
            Assert.IsTrue(Compares.AreDeepEqual(expected, paths));
        }