public PotentialFieldAlgorithm(int cacheSize, int amountOfNodes) { _dijkstraAlgorithm = new DijkstraAlgorithm(amountOfNodes); if (cacheSize > 0) { _potentialFieldCache = new ConcurrentCache <IPathRequest, PotentialField>(cacheSize, new SingleSourcePathRequestComparer()); } }
public PotentialFieldAlgorithm(int amountOfNodes) { _dijkstraAlgorithm = new DijkstraAlgorithm(amountOfNodes); }