Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }