GalacticStarfish
GalacticStarfish
Inside `tree.__print_backend` you'll find: # legacy ordering if key_func is None: def key_func(node): return node Presumably, this was done for the call which appears later in `__get_iter`: children.sort(key=key_func, reverse=reverse)' However,...
What does the abbreviation `cor` in variable named `dt_line_cor` represent? This is in the method `tree.__get_iter` `dt_vline, dt_box, dt_line_cor = dt` clearly `vline` is "vertical line," but I'm not sure...
The `self._reader` member variable is only used in two methods of the tree class; `__str__()` and `show()`, In fact, the methods are short enough that I will just display the...
The ` tree.show` method has alot of options: tree.show([nid[, level[, idhidden[, filter[, key[, reverse[, line_type[, data_property]]]]]]]]] However, none of these parameters is an iostream. Also, ` tree.save2file ` accepts a...
`__get_iter` is a bit of a mess. It handles **both** creating a node iterator **AND** printing functionality. `filter_` tells us to only print nodes meeting some user-specified property. `filter_` is...
The back-end private functions should not have both `reverse` and `key` as input parameters. It is fine if the front-end allows users to specify `reverse` and `key`, the back-end functions...
Overtime, people have updated some of the functions in treelib to have several different input arguments. Of particular interest are the functions which print and/or save the tree, such as...
The documentation says the tree class has a method named `tree.all_nodes_iter()`, but the method name is actually `itr` without an `e` http://treelib.readthedocs.io/en/latest/pyapi.html#tree-objects http://treelib.readthedocs.io/en/latest/pyapi.html#tree.all_nodes_iter Attempts to call `all_nodes_iter()` raise `AttributeError` Recommend...