Can anyone give the source code for Prim's and Kruskal's algorithm in C or in C++?
here in prim in C++ :
//
// This file contains the C++ code from Program 16.16 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.