You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.0 KiB

# used if you want to add links to the tree, or a node in the tree
ID = "t9"
# example of tree (commented out)
'''
tree = [
("root", [
("child", [
"grandchild", "grandchild"
]),
("child", []),
]),
]
'''
# every node is written ("value", [])
# the list inside contains all children of that node
# a string can also be used (i.e. "grandchildren"), but it can have no children
# the tree you want converted to HTML, here:
tree = [
("n", [
("n/2", [
("n/4", [
("n/8", [
("...", [
("2", [
"1", "1"
]),
]),
]),
("n/8", [
"..."
]),
]),
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]),
]),
("n/2", [
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]),
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]),
]),
]),
]