Graphs data structure using adjacency list impl + sorting algs