I have a tree structure like the following:
{
"7": ["3", "8"],
"3": ["2", "4", "1"],
"4": ["5", "6"],
"8": ["12", "13"]
}
This dictionary simply means that the root node of the tree is 7(as it is not a child of any other node) which has two children 3 and 8 while 3 has three children(2, 4, 1) and 8 has two children(12, 13). 3 has a child 4 which has two children(5,6).
My problem is that I need a dynamic tree generator as I will have different tree(And they will not be binary tree!) structure every time I shall run the code. My code is in python and I want show the tree in web.
Is there any javascript library which I can use to draw this tree?