5
$\begingroup$

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?

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

1 Answer 1

7
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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