Output of RootedTrees()
Dear all,
I’m currently working on rooted trees and I wanted to ask if there is an alternative output for rooted trees by using HashTables or edge sets.
For example, if I run the following code:
n = 5
trees = RootedTrees(n)
for T in trees:
print(T)
The output I get is:
[[[[[]]]]]
[[[[], []]]]
[[[], [[]]]]
[[[], [], []]]
[[], [[[]]]]
[[], [[], []]]
[[[]], [[]]]
[[], [], [[]]]
[[], [], [], []]
Is there a different way to represent or obtain this output using HashTables or edge sets? For instance, I guess [[], [], [], []] means the tree G having E(G)={{1,2},{1,3},{1,4},{1,5}}
What is "output using HashTables"?
For instance, the HashTable of G with V(G)={1,2,3,4,5} and E(G)={{1,2},{1,3},{1,4},{1,5}} is { 1 => {2,3,4,5}, 2 => {}, 3 => {}, 4 => {}, 5 => {} }
It's called adjacency list - eg., see https://en.wikipedia.org/wiki/Adjacen...
I knew its name was "HashTable" from Macaulay2 language. Thank you for your clarification