MCPcopy Create free account
hub / github.com/InternScience/SciReason / TreeNode

Class TreeNode

opencompass/datasets/phybench/EED.py:204–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202
203
204class TreeNode:
205
206 def __init__(self, label, children=None, node_type='other'):
207 self.label = label
208 self.children = children if children is not None else []
209 self.node_type = node_type
210 self.subtree_size = 0
211
212 def get_children(self):
213 return self.children
214
215 def __str__(self):
216 return self.label
217
218
219def print_tree(node, indent=0):

Callers 1

sympy_to_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected