Пример #1
0
        public void GetWeight(Graph graph, int sourceNode, int destinationNode, double expected)
        {
            var bellmanFord = new BellmanFord(graph, sourceNode);
            var result      = bellmanFord.GetWeight(destinationNode);

            Assert.Equal(expected, result);
        }