Exemple #1
0
 public DijkstraAlgorithm(IGetAllNodesHelper getNodes, ICreateGraphHelper createGraph, CreateUnitHelper unitHelper,
                          ISortNodesByDistanceHelper sortNodes, IUpdateUnvisitedNodesHelper updateGraph)
 {
     _getNodes    = getNodes;
     _sortNodes   = sortNodes;
     _updateGraph = updateGraph;
     _createGraph = createGraph;
     _unitHelper  = unitHelper;
 }
 public AStarSearchAlgorithm(ICreateGraphHelper createGraph, CreateUnitHelper unitHelper)
 {
     _createGraph = createGraph;
     _unitHelper  = unitHelper;
 }