private void determineFunctionCandidatesNNZPropagation(Map<String,FunctionOp> fcandHops,Map<String,Set<Long>> fcandSafeNNZ){
  for (  Entry<String,FunctionOp> e : fcandHops.entrySet()) {
    String fKey=e.getKey();
    FunctionOp fop=e.getValue();
    HashSet<Long> tmp=new HashSet<Long>();
    for (    Hop input : fop.getInput()) {
      if (input.getNnz() >= 0)       tmp.add(input.getHopID());
    }
    fcandSafeNNZ.put(fKey,tmp);
  }
}

private void determineFunctionCandidatesNNZPropagation ( Map < String , FunctionOp > fcandHops , Map < String , Set < Long > > fcandSafeNNZ ) { for ( Entry < String , FunctionOp > e : fcandHops . entrySet ( ) ) { String fKey = e . getKey ( ) ; FunctionOp fop = e . getValue ( ) ; HashSet < Long > tmp = new HashSet < Long > ( ) ; for ( Hop input : fop . getInput ( ) ) { if ( input . getNnz ( ) >= 0 ) tmp . add ( input . getHopID ( ) ) ; } fcandSafeNNZ . put ( fKey , tmp ) ; } }
populates fcandsafennz with all < functionkey , hopid > pairs where it is safe to propagate nnz into the function .
