layout(method) {
      const m = method || 'tidy';
      if (has$1(Layouts, m)) return Layouts[m]();else error('Unrecognized Tree layout method: ' + m);
    }
Tree layout generator. Supports both 'tidy' and 'cluster' layouts.