code: function() {
  
          var source = this.source();
          var graph = this.graph;
  
          return (source && source.id && graph && graph.getCell(source.id)) || null;
      }
docs: unlike source(), this method returns null if source is a point