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$ 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$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.