public List < Long > getSitesForPartitions ( int [ ] partitions ) { ArrayList < Long > all_sites = new ArrayList < Long > ( ) ; for ( int p : partitions ) { List < Long > sites = getSitesForPartition ( p ) ; for ( long site : sites ) { all_sites . add ( site ) ; } } return all_sites ; }
Get the ids of all sites that contain a copy of ANY of the given partitions .