コード例 #1
0
		internal void LeastCostPaths()
		{
			FloydWarshallDistanceTester tester = 
				new FloydWarshallDistanceTester(
				Distances,
				new FloydWarshallShortestPathDistanceTester()
				);

			FloydWarshallAllShortestPathAlgorithm fw = 
				new FloydWarshallAllShortestPathAlgorithm(
				VisitedGraph,
				tester
				);

			fw.Compute();
			fw.CheckConnectivityAndNegativeCycles(Distances);
		}