Beispiel #1
0
        public void GetAllVerticesTest()
        {
            MarkovChain <int> chains = new MarkovChain <int>(4);

            chains.AddEdge(0, 4, 0.2);
            chains.AddEdge(5, 6, 0.7);
            chains.AddEdge(7, 9, 0.1);

            CollectionAssert.AreEquivalent(new List <int> {
                0, 4, 5, 6, 7, 9
            }, chains.GetAllVertices());
        }