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