working system for generating basic graph and segmentation