SyntaxFix
Write A Post
Hire A Developer
Questions
Kruskal can have better performance if the edges can be sorted in linear time, or are already sorted.
Prim's better if the number of edges to vertices is high.