代码片段:Edge.prototype.swap=function(){vare0=this.oPrev(),e1=this.sym().oPrev();this.splice(e0);this.sym().splice(e1);this.splice(e0.lNext());this.sym().splice(e1.lNext());this.setOrg(e0.dest());this.setDest(e1.dest());};