public boolean isConnected(final Synapse s){
  return (fanIn.contains(s) || fanOut.get(s.getTarget()) != null);
}

public boolean isConnected ( final Synapse s ) { return ( fanIn . contains ( s ) || fanOut . get ( s . getTarget ( ) ) != null ) ; }
true if the synapse is connected to this neuron , false otherwise .
