Sorting Algorithms Graph Time Complexity