graph = [[4, 3, 1], [3, 2, 4], [3], [4], []]
print(sorted(graph))

87e9da2fdb7ae64cc1bdfcb34e5b7340a445ff26
<mask token>

<mask token>
print(sorted(graph))

graph = [[4, 3, 1], [3, 2, 4], [3], [4], []]
print(sorted(graph))
