Prim's algorithm in C and C++ | Programming Tutors