Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
[];this.traverse(k,!0,mxUtils.bind(this,function(v,E){var D=null!=E&&this.isTreeEdge(E);D&&m.push(E);v==k||null!=E&&!D||m.push(v);return(null==E||D)&&(v==k||!this.model.isCollapsed(v))}));this.model.setCollapsed(k,c);for(var u=0;u<m.length;u++)this.model.setVisible(m[u],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,k,m,u,v,E){return this.model.filterCells(this.getEdges(c,k,m,u,v,E),mxUtils.bind(this,