order graph with nb_threads