text: It is general , i.e. , it can be used to minimize any << energy function >> -LRB- e.g. , unary , pairwise , and higher-order terms -RRB- with any existing [[ energy minimization algorithm ]] -LRB- e.g. , graph cuts and belief propagation -RRB- .