Beispiel #1
0
        public void TestDijkstraGreedy()
        {
            var map = BuildGridMap();
            var way = Astar.FindWay2(start, end, map);

            if (null != way)
            {
                ShowRoad(way);
            }
        }
Beispiel #2
0
        public void TestAstarGetMinCostRoad()
        {
            var map = BuildGridMap();
            var way = Astar.FindWay(start, end, map);

            if (null != way)
            {
                ShowRoad(way);
            }
        }
Beispiel #3
0
        public void TestBFSWithGreedyMinDistanceRoad()
        {
            var map = BuildGridMap();
            var way = Astar.FindWayGreedy(start, end, map);

            if (null != way)
            {
                ShowRoad(way);
            }
        }