caesar0301 / treelib

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

Predecessor can't return None, but seems like should be able to? #176

Open andrewshvv opened 3 years ago

andrewshvv commented 3 years ago

From the code, it looks like the predecessor node function should be able to return None. But in the current implementation, it can't.

https://github.com/caesar0301/treelib/blob/2d874516d986a937420215f58143e51d3f0893b5/treelib/node.py#L133