public static boolean testRecurrence(List<Neuron> sourceNeurons,List<Neuron> targetNeurons){
  if (sourceNeurons.size() != targetNeurons.size()) {
    return false;
  }
 else {
    for (int i=0; i < sourceNeurons.size(); i++) {
      if (sourceNeurons.get(i) != targetNeurons.get(i)) {
        return false;
      }
    }
  }
  return true;
}

public static boolean testRecurrence ( List < Neuron > sourceNeurons , List < Neuron > targetNeurons ) { if ( sourceNeurons . size ( ) != targetNeurons . size ( ) ) { return false ; } else { for ( int i = 0 ; i < sourceNeurons . size ( ) ; i ++ ) { if ( sourceNeurons . get ( i ) != targetNeurons . get ( i ) ) { return false ; } } } return true ; }
tests whether or not these connections are recurrent , that is , whether or not the neurons in the source list are the same as those in the target list .
