I\'m trying to model a constraint in Python using Pulp and networkX that is getting the sum of the edges that contain this node over all th