First time here? Check out the FAQ!
answered 2016-09-07 15:34:32 +0100
Given an ordered tree T, you can do:
T
sage: T.to_dyck_word()