493494495496497498499500501502503
TapGraph tapGraph = getTapGraph(); Set<Tap> taps = new HashSet<Tap>(); for( Tap tap : tapGraph.vertexSet() ) { if( tapGraph.outDegreeOf( tap ) == 0 ) taps.add( tap ); } return taps; }