Ejemplo n.º 1
0
        public void GetOutgoingVerticesTest()
        {
            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);

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