Simplified edge-cutting for graph HMM.