datastructure.Graph and Sort