Hello,
I'm working on investigating binary trees and want to conduct a "Forced-based Simulation" by creating a recursive function that will populate nodes based on a set of rules. How do I add to this binary tree? The documentation does not clearly state how to do this?
Any direction would be appreciated! Thanks!
https://reference.wolfram.com/language/ref/datastructure/BinaryTree.html
In[9]:= tree = CreateDataStructure["BinaryTree", v -> {l, b} ]
Out[9]= DataStructure[BinaryTree, {Data -> v -> {l, b}}]
In[6]:= tree["Visualization"]

Update: So, it seems like the tree is a List of rules? I'm also not sure what "Data" Means. How can I add nodes to this binary true with rules? I also cannot find anything about this "Data" expression. It seems to be some built in something.
In[7]:= FullForm[tree]
Out[7]//FullForm= FullForm[DataStructure["BinaryTree", {"Data" -> v -> {l, b}}]]
In[8]:= OutputForm[tree]
Out[8]//OutputForm= DataStructure["BinaryTree", {"Data" -> v -> {l, b}}]