add sort-alg in graph