Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Prim`s Algorithm

Language: Layout:
- ] Show input
Compilation time: 0,14 sec, absolute running time: 0,11 sec, cpu time: 0,09 sec, average memory usage: 12 Mb, average nr of threads: 3 
edit mode |  history  | discussion
adjacencyList[0] -> 
adjacencyList[1] -> 2(3)3(4)
adjacencyList[2] -> 3(5)
adjacencyList[3] -> 5(7)
adjacencyList[4] -> 2(6)
adjacencyList[5] -> 2(2)