add efficient graph based imseg 04