Table of Contents

Class BoruvkasAlgorithmImproved<TWeight>

Namespace
AlgorithmsSW.EdgeWeightedGraph
Assembly
AlgorithmsSW.dll

An implementation of Boruvka's algorithm to find the MST of a graph.

public class BoruvkasAlgorithmImproved<TWeight> : IMst<TWeight> where TWeight : INumber<TWeight>

Type Parameters

TWeight

The type of the edge weights.

Inheritance
BoruvkasAlgorithmImproved<TWeight>
Implements
IMst<TWeight>
Inherited Members
Extension Methods

Remarks

This algorithm is not really better than BoruvkasAlgorithm<TWeight>.

Constructors

BoruvkasAlgorithmImproved(IEdgeWeightedGraph<TWeight>)

public BoruvkasAlgorithmImproved(IEdgeWeightedGraph<TWeight> graph)

Parameters

graph IEdgeWeightedGraph<TWeight>

Properties

Edges

Gets the edges that is part of the minimum spanning tree.

public IEnumerable<Edge<TWeight>> Edges { get; }

Property Value

IEnumerable<Edge<TWeight>>