Step 5: Edge Permutation of Last Layer