public void ShouldCountAllSimpleCyclesWhenGivenSourceNodeAndMaxStops(string igraph, char isourceNode, int imaxStops, int expectedCycleCount)
        {
            //Arrange
            var graph = GraphLoaderHelper.LoadGraphFromString(igraph);
            var sut   = new CycleOperations <char>();

            //Act
            var actual = sut.FindAllSimpleCycles(graph, isourceNode, imaxStops);

            //Assert
            Assert.AreEqual(expectedCycleCount, actual.Count);
        }
        public void ShouldCountAllCyclesGivenSourceNodeAndMaxPathWeight(string igraph, char isourceNode, int imaxWeight, int expectedCycleCount)
        {
            //Arrange
            var graph = GraphLoaderHelper.LoadGraphFromString(igraph);
            var sut   = new CycleOperations <char>();

            //Act
            var actual = sut.CountAllCycles(graph, isourceNode, imaxWeight);

            //Assert
            Assert.AreEqual(expectedCycleCount, actual);
        }
        public void ShouldCountAllSimpleCycles(string igraph, int expectedCycleCount)
        {
            //Arrange
            var graph = GraphLoaderHelper.LoadGraphFromString(igraph);
            var sut   = new CycleOperations <char>();

            //Act
            var actual = sut.FindAllSimpleCycles(graph);

            //Assert
            Assert.AreEqual(expectedCycleCount, actual.Count);
        }