caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
800 stars 185 forks source link

Cannot understand how to use 'successors' #187

Open sblbl opened 2 years ago

sblbl commented 2 years ago

Hi! Could you please give me an example of how to get the successors of a node 'a'? I'm not understanding what's the tree_id that is required to use this function

antipodite commented 2 years ago

The tree_id is the identifier of the tree object containing the nodes, tree.identifier if that helps. Not really feeling this change to the API...