![]() | 1 | initial version |
You can change them to planar trees and then use existing methods:
sage: a = RootedTrees().an_element()
sage: b=RootedTree([a,a])
sage: c=OrderedTree(b)
sage: c.to_poset()
Finite poset containing 3 elements
![]() | 2 | No.2 Revision |
You can change them to planar trees and then use existing methods:
sage: a = RootedTrees().an_element()
sage: b=RootedTree([a,a])
b = RootedTree([a,a])
sage: c=OrderedTree(b)
c = OrderedTree(b)
sage: c.to_poset()
Finite poset containing 3 elements
![]() | 3 | No.3 Revision |
You can change them to planar trees and then use existing methods:
sage: a = RootedTrees().an_element()
sage: b = RootedTree([a,a])
RootedTree([a, a])
sage: c = OrderedTree(b)
sage: c.to_poset()
Finite poset containing 3 elements