Function to find out minimum valued node among the nodes which are not yet included in MST
int minnode ( int n , int keyval [ ] , bool mstset [ ] ) { int mini = numeric_limits < int > :: max ( ) ; int mini_index ;