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,
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(M){return n.isVertex(M)&&m(M)}function k(M){var p=!1;null!=M&&(p="1"==