@ Override public List < ISingleElectron > getConnectedSingleElectronsList ( IAtom atom ) { List < ISingleElectron > lps = new ArrayList < ISingleElectron > ( ) ; for ( int i = 0 ; i < singleElectronCount ; i ++ ) { if ( singleElectrons [ i ] . contains ( atom ) ) lps . add ( singleElectrons [ i ] ) ; } return lps ; }
Returns an array of all SingleElectron connected to the given atom .