mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Small Tweaks/Fixes (#235)
This commit is contained in:
@@ -163,7 +163,7 @@ class GraphWeightedUndirectedAdjacencyList {
|
||||
}
|
||||
|
||||
PrimMST (start) {
|
||||
// Kruskal's Algorithm to generate a Minimum Spanning Tree (MST) of a graph
|
||||
// Prim's Algorithm to generate a Minimum Spanning Tree (MST) of a graph
|
||||
// Details: https://en.wikipedia.org/wiki/Prim%27s_algorithm
|
||||
const distance = {}
|
||||
const parent = {}
|
||||
|
||||
Reference in New Issue
Block a user