Class Prims<T, W>
A Prims algorithm implementation.
Inherited Members
Namespace: Advanced.Algorithms.Graph
Assembly: Advanced.Algorithms.dll
Syntax
public class Prims<T, W>
where W : IComparable
Type Parameters
Name | Description |
---|---|
T | |
W |
Methods
FindMinimumSpanningTree(WeightedGraph<T, W>)
Find Minimum Spanning Tree of given weighted graph.
Declaration
public List<MSTEdge<T, W>> FindMinimumSpanningTree(WeightedGraph<T, W> graph)
Parameters
Type | Name | Description |
---|---|---|
WeightedGraph<T, W> | graph |
Returns
Type | Description |
---|---|
List<MSTEdge<T, W>> | List of MST edges |