Labeling Parts of a Graph - Search