Is a tree structure query find all of his superior one node and all subordinate node
Java implementation.
CodePudding user response:
Query his parent have continued to query his parent until there is no, then query him a subset of the query until no recursionCodePudding user response:
The key is he this data type is a network data recursion can find its parent or the following nodes can't query all of the parent and child nodes at the same time