add graph based segmentation