Node node = this.getNode(entity);
if (node != null) {
this.getFamixToNodeMap().remove(entity);
this.getNodeToFamixMap().set(node, null);
Graph graph = node.getGraph(); // if parent node has been removed, than node is not in the graph anymore
if (graph != null) {
node.getGraph().removeNode(node);
}
isRemoved = true;
}