http://dovgalecs.com/blog/code-label-propagation-through-linear-neighborhood/

Optimization software

The code *REQUIRES* installed and functional IBM CPLEX [LINK] optimization software from IBM! It is relatively easy to replace the optimization solver (Quadratic Program with Linear Constraints) by a solver from MATLAB optimization toolbox. Take a look also at YALMIP [LINK] and SeDuMi [LINK] packages if you don’t have access to neither of software!