( Function<Node,E> pred )
| 596 | // not-null result. |
| 597 | private static final BitSet WVISIT = new BitSet(); |
| 598 | final public <E> E walk( Function<Node,E> pred ) { |
| 599 | assert WVISIT.isEmpty(); |
| 600 | E rez = _walk(pred); |
| 601 | WVISIT.clear(); |
| 602 | return rez; |
| 603 | } |
| 604 | |
| 605 | private <E> E _walk( Function<Node,E> pred ) { |
| 606 | if( WVISIT.get(_nid) ) return null; // Been there, done that |