Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
function(E){if(null!=E){var M=this.getCellGeometry(E);null!=M&&M.relative&&(E=this.model.getParent(E))}null!=E&&this.model.isEdge(E)&&(E=this.model.getParent(E));null!=E&&(E=this.getCompositeParent(E));return E};Graph.prototype.getCompositeParent=function(E){for(;this.isPart(E);){var M=this.model.getParent(E);if(!this.model.isVertex(M))break;E=M}return E};Graph.prototype.filterSelectionCells=function(E){var M=this.getSelectionCells();if(null!=E){for(var T=[],F=0;F<M.length;F++)E(M[F])||T.push(M[F]);