( Function<Node,E> pred )
| 631 | // not-null result. |
| 632 | private static final BitSet WVISIT = new BitSet(); |
| 633 | final public <E> E walk( Function<Node,E> pred ) { |
| 634 | assert WVISIT.isEmpty(); |
| 635 | E rez = _walk(pred); |
| 636 | WVISIT.clear(); |
| 637 | return rez; |
| 638 | } |
| 639 | |
| 640 | private <E> E _walk( Function<Node,E> pred ) { |
| 641 | if( WVISIT.get(_nid) ) return null; // Been there, done that |