Instead of O (| V || E |), the complexity of the calculated indices is O (| E |). Consider the following pseudo-code for calculating the indices of each node:
for each u
indegree[u] = 0;
for each u
for each v \in Adj[u]
indegree[v]++;
O (| V |). : v | E | , | V | . O (| V || E |). , , O (| E |).