public Map<Integer,Integer> apply() throws CanceledException {
  Map<Integer,Integer> orphan2AncestorMapping=new HashMap<>();
  progressListener.setMaximum(tree.getNumberOfNodes());
  progressListener.setProgress(0);
  Set<Integer> orphans=new HashSet<>();
  computeOrphan2AncestorMappingRec(tree.getRoot(),orphan2AncestorMapping,orphans);
  for (  Integer id : orphans) {
    orphan2AncestorMapping.put(id,IdMapper.UNASSIGNED_ID);
  }
  orphans.clear();
  return orphan2AncestorMapping;
}

public Map < Integer , Integer > apply ( ) throws CanceledException { Map < Integer , Integer > orphan2AncestorMapping = new HashMap < > ( ) ; progressListener . setMaximum ( tree . getNumberOfNodes ( ) ) ; progressListener . setProgress ( 0 ) ; Set < Integer > orphans = new HashSet < > ( ) ; computeOrphan2AncestorMappingRec ( tree . getRoot ( ) , orphan2AncestorMapping , orphans ) ; for ( Integer id : orphans ) { orphan2AncestorMapping . put ( id , IdMapper . UNASSIGNED_ID ) ; } orphans . clear ( ) ; return orphan2AncestorMapping ; }
applies the min support filter to taxon classification
