Set < PolicyNodeImpl > getPolicyNodes ( int depth ) { Set < PolicyNodeImpl > set = new HashSet <> ( ) ; getPolicyNodes ( depth , set ) ; return set ; }
Returns all nodes at the specified depth in the tree .