code: public static JoinGraph buildShallowFrom(PlanNode plan, Lookup lookup)
      {
          JoinGraph graph = plan.accept(new Builder(true, lookup), new Context());
          return graph;
      }
docs: Builds {@link JoinGraph} containing {@code plan} node.