5

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?

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

1 Answers1

7

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

kglr
  • 394,356
  • 18
  • 477
  • 896