Second graph

Built second graph for ordering