Data.Graph.Dense.Prim
primDense Source #
Arguments
n
root
adjacent matrix (n x n)
parent (parent[root] = -1)
O(V^2)