Since edge u is removed , update the indegrees of all the nodes which had an incoming edge from u
for ( auto x : adj [ u ] ) { indeg [ x ] -- ; if ( indeg [ x ] == 0 ) q . push ( x ) ; } } return res ; }