I need some help to orient a diagram knot For example if I have the diagram KnotData["Trefoil,"KnotDiagram"]

How can I orient the diagram?

I have tried to find a command in Wolfram that assigns an orientation to the knot, but I still can't find it, the closest I have found is the DirectedEdge command.

Does anyone know how I could orient the diagram of a knot or can you give me an idea on which commands to use?

  • 2
    $\begingroup$ do you get what you need using KnotData["Trefoil", "KnotDiagram"] /. Line -> Arrow and/or KnotData["Trefoil", "KnotDiagram"] /. Line -> (Arrow@*Reverse)? $\endgroup$ – kglr Mar 22 '20 at 20:32

You can use ReplaceAll to replace Lines with Arrows:

KnotData["Trefoil", "KnotDiagram"] /. Line -> Arrow

enter image description here

To reverse the direction of arrows use

KnotData["Trefoil", "KnotDiagram"] /. Line -> (Arrow @* Reverse)

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.