New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement multi child tree #28
base: master
Are you sure you want to change the base?
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 = children My 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
treeviz
function can only support binary tree with child nameleft
andright
.So I made some modification to support multi children and specifying child name. I add 2 new parameters for
treeviz()
,childfields
andshow_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.