Function to find out minimum valued node among the nodes which are not yet included in MST
def minnode ( n , keyval , mstset ) : NEW_LINE INDENT mini = 999999999999 NEW_LINE mini_index = None NEW_LINE DEDENT