Closed
Description
from treelib import Node, Tree
tree = Tree()
tree.create_node('Students', 'Students', parent=None)
Node(tag=Students, identifier=Students, data=None)
tree.create_node('Ben', 'Ben',parent='Students')
Node(tag=Ben, identifier=Ben, data=None)
tree.create_node('Annie', 'Annie',parent='Students')
Node(tag=Annie, identifier=Annie, data=None)
tree.show()
Students
├── Annie
└── Ben
As you see eventhough i created Ben Node first as child it is displaying Annie first, is there an argument in show() or in create_method() which i can pass to maintain the order when i call show method
Metadata
Metadata
Assignees
Labels
No labels