Decomposition Algorithms for Certain Integer Problems over Networks