public void Graph3_BellmanFord() { var graph = GraphGenerator.Graph3(); var bellmanFord = new BellmanFord(graph); var result = bellmanFord.Work(false); int[] excected = { 0, 2 }; Assert.AreEqual(true, ArrayComparer.Compare(excected, result)); }
public void Graph3_Dijkstra() { var graph = GraphGenerator.Graph3(); var dijkstra = new Dijkstra(graph); var result = dijkstra.Work(false); int[] excected = { 0, 2 }; Assert.AreEqual(true, ArrayComparer.Compare(excected, result)); }