Closed boykov closed 5 years ago
These are two different cases. That case: Node 1
is the single 1-level node in the hierarchy. My case: there are two 1-level nodes: H1
and H4
. root[0]
is all of them, but root[1]
should be only H1
related, not H4
(H5
is a child of H4
). root[4]
is H4
related. root[1:]
is iterable object which includes H4
as 1-level node. It is correct.
Should be fixed now, turned out to be trivial. Thanks, let me know if you have any other issues!
I use
and get
instead of
H5 is not a child of H1, but it shows up in root[1]