The transpose of (Notation ) is a graph with:
Transpose Algorithm
Time complexity:
allocate array T of size n
for i in 0,...,n-1:
node = A[i]
while node != null:
T[node.id] = create_node(i)
node = node->next
The transpose of G (Notation GT) is a graph G with:
Time complexity: O(n+m)
allocate array T of size n
for i in 0,...,n-1:
node = A[i]
while node != null:
T[node.id] = create_node(i)
node = node->next
