title: Refreshing all links in a paper/graph in JointJS
body: <p>I am programatically adding a PORT to one of the rectangles in my graph via</p>
  
  <pre><code>Editor.prototype.addColumn = function(name)
  {
      if(this.rects[this.model.name].attributes.inPorts == undefined)
          this.rects[this.model.name].attributes.inPorts = [];
      if(this.rects[this.model.name].attributes.inPorts.indexOf(name) &lt; 0)
      {
          this.rects[this.model.name].attributes.inPorts.push(name);
          this.rects[this.model.name].updatePortsAttrs();
      }
  }
  </code></pre>
  
  <p>While this code updates the rectangle correctly and shows the newly added port, it messes up all links attached to other ports on that rectangle. Is it possible to redraw the entire graph so that all connections are corrected, or will I have to iterate over the links in the graph and somehow update the manually ?</p>
  
  <p>Thanks</p>