We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88bbfdc commit 941fedaCopy full SHA for 941feda
src/algorithms/graph/kruskal/kruskal.js
@@ -10,7 +10,7 @@ export default function kruskal(graph) {
10
// It should fire error if graph is directed since the algorithm works only
11
// for undirected graphs.
12
if (graph.isDirected) {
13
- throw new Error('Prim\'s algorithms works only for undirected graphs');
+ throw new Error('Kruskal\'s algorithms works only for undirected graphs');
14
}
15
16
// Init new graph that will contain minimum spanning tree of original graph.
0 commit comments