Added minCut and edge contraction functions

Python has positive and negative infinity:
float("inf"), float("-inf")
Remove the item at the given position in the list, and return it:
dict.pop()