public int[] numVerticesDetected(Set<? extends SampledVertex> vertices){
  int it=-1;
  TIntIntHashMap map=new TIntIntHashMap();
  for (  SampledVertex v : vertices) {
    if (v.isDetected()) {
      map.adjustOrPutValue(v.getIterationDetected(),1,1);
      it=Math.max(it,v.getIterationDetected());
    }
  }
  int[] list=new int[it + 1];
  for (int i=0; i <= it; i++) {
    list[i]=map.get(i);
  }
  list[0]+=map.get(-1);
  return list;
}

public int [ ] numVerticesDetected ( Set < ? extends SampledVertex > vertices ) { int it = - 1 ; TIntIntHashMap map = new TIntIntHashMap ( ) ; for ( SampledVertex v : vertices ) { if ( v . isDetected ( ) ) { map . adjustOrPutValue ( v . getIterationDetected ( ) , 1 , 1 ) ; it = Math . max ( it , v . getIterationDetected ( ) ) ; } } int [ ] list = new int [ it + 1 ] ; for ( int i = 0 ; i <= it ; i ++ ) { list [ i ] = map . get ( i ) ; } list [ 0 ] += map . get ( - 1 ) ; return list ; }
returns an array with the number of detected vertices per iteration .
