private void removeNeuron(Neuron neuron){
  NeuronNode node=(NeuronNode)objectNodeMap.get(neuron);
  if (node != null) {
    selectionModel.remove(node);
    node.removeFromParent();
    objectNodeMap.remove(neuron);
    if (neuron.getParentGroup() != null) {
      NeuronGroupNode groupNode=(NeuronGroupNode)objectNodeMap.get(neuron.getParentGroup());
      if (groupNode != null) {
        groupNode.removeNeuronNode(node);
      }
    }
    zoomToFitPage(false);
  }
}

private void removeNeuron ( Neuron neuron ) { NeuronNode node = ( NeuronNode ) objectNodeMap . get ( neuron ) ; if ( node != null ) { selectionModel . remove ( node ) ; node . removeFromParent ( ) ; objectNodeMap . remove ( neuron ) ; if ( neuron . getParentGroup ( ) != null ) { NeuronGroupNode groupNode = ( NeuronGroupNode ) objectNodeMap . get ( neuron . getParentGroup ( ) ) ; if ( groupNode != null ) { groupNode . removeNeuronNode ( node ) ; } } zoomToFitPage ( false ) ; } }
remove the indicated neuron from the gui .
