Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 292 Bytes

File metadata and controls

6 lines (5 loc) · 292 Bytes

Prim-Algorithm-Java

My implementation to Prim's Algo that finds a minimum spanning tree for a weighted undirected graph. The algorithm is in Graph class.

there is also addedEdgeToMST() function that for a given Edge that was added to previously mst graph, it returns a new MST in O(|E|).