Added list to hold topologically sorted vertices