https://hgpu.org/?p=934
A Scalable graph-cut algorithm for N-D grids