code: public static PlanNode transpose(PlanNode parent, PlanNode child)
      {
          return child.replaceChildren(ImmutableList.of(
                  parent.replaceChildren(
                          child.getSources())));
      }
docs: Transforms a plan like P->C->X to C->P->X