Ask Your Question

Revision history [back]

click to hide/show revision 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

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

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