Assume that vertices are numbered from 1 to 7 as in a binary heap. ... for each v ∈ Adj[u] for each w ∈ Adj[v]. E[G2] ← {(u, w)} ∪ E[G2].
確定! 回上一頁