code: function layoutDimensions(options) {
      options = getLayoutDimensionOptions(options);
  
      if (options.nodeDimensionsIncludeLabels) {
        var bbDim = this.boundingBox();
        return {
          w: bbDim.w,
          h: bbDim.h
        };
      } else {
        return {
          w: this.outerWidth(),
          h: this.outerHeight()
        };
      }
    }
docs: Calculates and returns node dimensions { x, y } based on options given