Use graph structure