public void deleteFanIn(){
  List<Synapse> fanInList=getFanInList();
  fanIn.clear();
  for (  Synapse synapse : fanInList) {
    parent.removeSynapse(synapse);
  }
}

public void deleteFanIn ( ) { List < Synapse > fanInList = getFanInList ( ) ; fanIn . clear ( ) ; for ( Synapse synapse : fanInList ) { parent . removeSynapse ( synapse ) ; } }
removes all synapses from fanin and from the network or any intermediate structures .
