( Function<Node,E> pred )
| 619 | // not-null result. |
| 620 | private static final BitSet WVISIT = new BitSet(); |
| 621 | final public <E> E walk( Function<Node,E> pred ) { |
| 622 | assert WVISIT.isEmpty(); |
| 623 | E rez = _walk(pred); |
| 624 | WVISIT.clear(); |
| 625 | return rez; |
| 626 | } |
| 627 | |
| 628 | private <E> E _walk( Function<Node,E> pred ) { |
| 629 | if( WVISIT.get(_nid) ) return null; // Been there, done that |