A python program to test weather a graph has or does not have a k-flow