Function to find out minimum valued node among the nodes which are not yet included in MST
static int minnode ( int n , int keyval [ ] , boolean mstset [ ] ) { int mini = Integer . MAX_VALUE ; int mini_index = 0 ;