Beispiel #1
0
        public Dictionary<Vector2i, List<GridEdge>> KruskalsMinimumSpanningForest(float[,] weights, IComparer<GridEdge> comparer = null)
        {
            if (comparer == null)
                comparer = new GridEdgeComparer();

            return Searches.KruskalsMinimumSpanningForest.Search(this, weights, comparer);
        }
Beispiel #2
0
        public void PrimsMinimumSpanningTree(GridSearch search, int x, int y, float[,] weights, IComparer<GridEdge> comparer = null)
        {
            if (comparer == null)
                comparer = new GridEdgeComparer();

            Searches.PrimsMinimumSpanningTree.Search(this, search, x, y, weights, comparer);
        }