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