I am interested in translating DT-codes into braid words. As an example for the trefoil knot: $\{4,6,2\}$ into $\{1,1,1\}$, where the latter stands for the braid word in the braid group of two strands.
Is there an algorithm for this? The low-dimensional topology computation programs like SnapPy or SageMath can do this indirectly but I could not figure out how.
Sage allows to do this using the hidden method
_braid_word_components_vectorof knots and links.Example:
The above few lines can be turned into a function:
Usage: