| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.