Exemplo n.º 1
0
 public DijkstraAlgorithmVisualizator(IDijkstraAlgorithm dijkstraAlgorithm,
                                      ConsoleColor textColor       = ConsoleColor.White,
                                      ConsoleColor backgroundColor = ConsoleColor.Black)
 {
     DijkstraAlgorithm = dijkstraAlgorithm ?? throw new ArgumentNullException("Необходима реализация алгоритма Дейкстры.");
     TextColor         = textColor;
     BackgroundColor   = backgroundColor;
 }
Exemplo n.º 2
0
        public void Init()
        {
            _alg = new DijkstraAlgorithm();

            _locations = LocationsForTesting.GetLocationsForTest();
        }
        public void Init()
        {
            _alg = new DijkstraAlgorithm();

            _locations = LocationsForTesting.GetLocationsForTest();
        }
Exemplo n.º 4
0
 public Graph(IDijkstraAlgorithm dijkstraAlgorithm)
 {
     this.dijkstraAlgorithm = dijkstraAlgorithm;
 }
Exemplo n.º 5
0
 public AlgorithmSelector(IDijkstraAlgorithm dijkstra, IAStarSearchAlgorithm aStar)
 {
     _dijkstra = dijkstra;
     _aStar    = aStar;
 }