This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict | |
from treelib import Node, Tree | |
class TreeNode: | |
"""If parent_id is -1, node at root level""" | |
def __init__(self, id, parent_id, disp_text, node_data=None, description=None) -> None: | |
self.id: int = id | |
self.parent_id: int = parent_id | |
self.disp_text: str = disp_text | |
self.node_data = node_data |