Restructures Nodes and Pipes