A python program to test whether a graph has a k-flow or not