public FloydWarshallAllShortestPathAlgorithm(IVertexAndEdgeListGraph visitedGraph, IFloydWarshallTester tester) { if (visitedGraph == null) { throw new ArgumentNullException("visitedGraph"); } if (tester == null) { throw new ArgumentNullException("test"); } this.visitedGraph = visitedGraph; this.tester = tester; this.definedPaths = null; }
/// <summary> /// Default constructor - initializes all fields to default values /// </summary> public FloydWarshallAllShortestPathAlgorithm( IVertexAndEdgeListGraph visitedGraph, IFloydWarshallTester tester ) { if (visitedGraph == null) { throw new ArgumentNullException("visitedGraph"); } if (tester == null) { throw new ArgumentNullException("test"); } this.visitedGraph = visitedGraph; this.tester = tester; this.definedPaths = null; }