def test_top_sort_single(): a = Vertex(Vertex._make_test_vertex()) g = Graph([a]) assert g.top_sort() == [a]