Domanda di colloquio di Increff

Graph question without topological sorting technique