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

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

            Assert.That(chains.GetIncomingVertices(5), Is.EquivalentTo(new List <int> {
                0, 4
            }));
        }