code: function Element(domElement) {
  
        // Helpers
        this.attr = function(attrName) {
          return domElement.getAttributeNS(null, attrName);
        };
  
        // Properties
        this.tag = domElement.tagName;
        this.class = this.attr('class');
        this.id = this.attr('id');
  
        // Methods
        this.isNode = function() {
          return !!~this.class.indexOf(self.settings('classPrefix') + '-node');
        };
  
        this.isEdge = function() {
          return !!~this.class.indexOf(self.settings('classPrefix') + '-edge');
        };
  
        this.isHover = function() {
          return !!~this.class.indexOf(self.settings('classPrefix') + '-hover');
        };
      }
docs: DOMElement abstraction