A class to split a graph in segments, needed by the LAP framework.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>