iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Graph.Dense.Prim

Synopsis

Documentation

primDense Source #

Arguments

:: (Unbox w, Num w, Ord w) 
=> Int

n

-> Int

root

-> Vector w

adjacent matrix (n x n)

-> Vector Int

parent (parent[root] = -1)

O(V^2)