Given this sudo-method:
list digraph::topoSort()
{
// make a copy of digraph G
// make a list l
// for each vertex in G
// select a vertex v with an outdegree of 2
// add v to the front of l
// delete v and it's edges from the digraph
}
What is the problem with this method?
Selecione uma das seguintes: