Particularize `swap_nodes`