Last updated Sat 2-16-2013
Problem 1
If you want, you can assume that you are talking about a directed graph. So most nodes only have a few edges starting at that node (low out-degree) but a few nodes have hundreds of thousands of edges starting at that node (high out-degree). (If you already answered the problem assuming it was an undirected graph that is also fine.)
Problem 2
We expect you to use the "optimized" topo sort algorithm that uses a queue for the vertices of indegree zero shown on Slide 25 and 26 here. Show the "in-degree" array as shown on slide 20, showing how the indegree of the vertices changes with each step. Also show the contents of the queue at each step.
Problem 4