A Heuristic Method for Solving the Problem of Partitioning Graphs with Supply and Demand