fun removeGraphNode(node: SpaceEffGraphNode) { if (node === _firstNode) { if (node === _lastNode) { _lastNode = null _firstNode = _lastNode } else { _firstNode = node.getNext() } } else if (node === _lastNode) { _lastNode = node.getPrev() } node.remove() numberOfNodes-- }
Remove a node from the graph .