implement multi child tree#28
Conversation
|
interesting...let me try it on a bunch of existing stuff. |
|
Hiya. What about trees with |
Yes, I did consider such implementation before. If I didn't misunderstand you, you mean such a structure of trees: class Tree:
def __init__(self, **children):
self.children = childrenMy current implementation can not handle such situations. I would like to add a new parameter for |
|
@parrt Hi, I just push my new implementation. You can check it out while free. |
|
Hi sorry for delay. I just started a new job and will be in a bootcamp for a couple of weeks! |
Hi, I was looking for a package to visualize Tree Search Algorithm Recently and I found this repository and really liked it. But for tree visualization, the
treevizfunction can only support binary tree with child nameleftandright.So I made some modification to support multi children and specifying child name. I add 2 new parameters for
treeviz(),childfieldsandshow_all_children. The variable name in childfields will be recognized as child node. And ifshow_all_children=False, it will only visualize the child names exist, else it will show all the names inchildfieds.I know you may be busy and this repository hasn't been updated for a long time. You can check these modification anytime free. I am so glad to receive any suggestions from you.