Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 6 NEW_LINE G = [ [ 3 , 1 ] , [ 2 , 3 ] , [ 2 , 1 ] , [ 4 , 5 ] , [ 5 , 6 ] , [ 6 , 4 ] ] NEW_LINE cost = [ 2 , 1 , 5 , 3 , 2 , 9 ] NEW_LINE M = len ( G ) NEW_LINE findMinCost ( G , cost , N , M ) NEW_LINE DEDENT