<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://katlas.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BocmoNpasc</id>
	<title>Knot Atlas - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://katlas.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BocmoNpasc"/>
	<link rel="alternate" type="text/html" href="https://katlas.org/wiki/Special:Contributions/BocmoNpasc"/>
	<updated>2026-08-21T10:49:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://katlas.org/index.php?title=Using_the_LinKnot_package&amp;diff=1691946</id>
		<title>Using the LinKnot package</title>
		<link rel="alternate" type="text/html" href="https://katlas.org/index.php?title=Using_the_LinKnot_package&amp;diff=1691946"/>
		<updated>2008-12-16T16:17:21Z</updated>

		<summary type="html">&lt;p&gt;BocmoNpasc: trcrolc4tcs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;vinoacell&lt;br /&gt;
{{Manual TOC Sidebar}}&lt;br /&gt;
&lt;br /&gt;
The Mathematica package [http://www.mi.sanu.ac.yu/vismath/linknot/ &#039;&#039;LinKnot&#039;&#039;] is a combination of two packages. The first, &amp;quot;Knot2000&amp;quot; was written by M. Ochiai and N. Imafuji. This was extended to the package &#039;&#039;LinKnot&#039;&#039; by S. Jablan and R. Sazdanovic. This package provides many useful things KnotTheory can&#039;t do natively; for example, it can interpret Conway notation, and, at least on Windows machines, provides nice graphics for knots, and a graphical interface for drawing knots by hand.&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;LinKnot&#039;&#039; also has a [http://math.ict.edu.yu/ webMathematica interface]!)&lt;br /&gt;
&lt;br /&gt;
There are two ways &#039;&#039;LinKnot&#039;&#039; can be used along with &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt;:&lt;br /&gt;
* As a &amp;quot;subcontractor&amp;quot;: &#039;&#039;LinKnot&#039;&#039; is mostly hidden and wrapper functions are provided to access some of its functionality from within &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* In parallel: everything from both packages is visible.&lt;br /&gt;
&lt;br /&gt;
The advantage for the first approach is that the interface to &#039;&#039;LinKnot&#039;&#039; is then consistent with the conventions used by &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt; and the Mathematica name space remains less cluttered. The advantage of the second approach is obvious - with it, all the functionality of &#039;&#039;LinKnot&#039;&#039; is available, and not just the parts for which wrapper functions are provided within &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Using &#039;&#039;LinKnot&#039;&#039; as a &amp;quot;subcontractor&amp;quot;====&lt;br /&gt;
To use &#039;&#039;LinKnot&#039;&#039; from within &#039;&#039;KnotTheory&#039;&#039;, download the file &amp;lt;tt&amp;gt;LinKnot.zip&amp;lt;/tt&amp;gt; from the [http://www.mi.sanu.ac.yu/vismath/linknot/ LinKnot site] or from [http://katlas.math.toronto.edu/svn/LinKnot/tags/stable/ our mirror]. Unzip and install the content of &amp;lt;tt&amp;gt;LinKnot.zip&amp;lt;/tt&amp;gt; wherever you like, and within Mathematica issue a command like&lt;br /&gt;
&lt;br /&gt;
{{Startup Note}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$AppendTo[$Path, &amp;quot;/path/to/LinKnots.m&amp;quot;];$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{In|&lt;br /&gt;
n  = 2 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;AppendTo[$Path, &amp;quot;/path/to/LinKnots.m&amp;quot;];&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve done this, everything should just work. (&#039;&#039;LinKnot&#039;&#039; will only be loaded when necessary, and there might be a short delay when this happens.) If everything doesn&#039;t just work, please complain to [[User:Scott|Scott]].&lt;br /&gt;
&lt;br /&gt;
In case of problems, you may find it helpful to explicitly set the path in which you&#039;ve installed &#039;&#039;LinKnot&#039;&#039; (although &#039;&#039;KnotTheory&#039;&#039; tries to do this itself). Simply set &amp;lt;tt&amp;gt;LinKnotDirectory[]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--$$?LinKnotDirectory$$--&amp;gt;&lt;br /&gt;
&amp;lt;!--Robot Land, no human edits to &amp;quot;END&amp;quot;--&amp;gt;&lt;br /&gt;
{{HelpLine|&lt;br /&gt;
n  = 3 |&lt;br /&gt;
in = &amp;lt;nowiki&amp;gt;LinKnotDirectory&amp;lt;/nowiki&amp;gt; |&lt;br /&gt;
out= &amp;lt;nowiki&amp;gt;LinKnotDirectory[] contains the path to the &#039;&#039;LinKnot&#039;&#039; package. It must be set correctly in order for all the (Windows only) MathLink components of &#039;&#039;LinKnot&#039;&#039; to be usable. It can be overriden by the user.&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!--END--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Using &#039;&#039;LinKnot&#039;&#039; in parallel with &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt;====&lt;br /&gt;
To use &#039;&#039;LinKnot&#039;&#039; in parallel with &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt;, you should [http://www.mi.sanu.ac.yu/vismath/linknot/LinKnot.zip download LinKnot.zip] from the [http://www.mi.sanu.ac.yu/vismath/linknot/ LinKnot site] (a full &#039;&#039;LinKnot&#039;&#039; manual page ManualK2KC.nb is in the zip file, and the main file is the mathematica notebook &amp;lt;tt&amp;gt;K2KL.nb&amp;lt;/tt&amp;gt;). After downloading the file LinKnot.zip:&lt;br /&gt;
&lt;br /&gt;
# Extract LinKnot.zip anywhere (e.g., to the local disc &amp;quot;C:\&amp;quot;). It will automatically create a new folder &amp;lt;tt&amp;gt;LinKnot&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Set the directory to &amp;lt;tt&amp;gt;LinKnot&amp;lt;/tt&amp;gt;, add the path to &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt; to the Mathematica &amp;lt;code&amp;gt;$Path&amp;lt;/code&amp;gt;, and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetDirectory[&amp;quot;/path/to/LinKnot/&amp;quot;];&lt;br /&gt;
&amp;lt;&amp;lt; LinKnots`&lt;br /&gt;
AppendTo[$Path, &amp;quot;Path to KnotTheory&amp;quot;];&lt;br /&gt;
&amp;lt;&amp;lt; KnotTheory`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if &#039;&#039;LinKnot&#039;&#039; is installed in &amp;quot;C:\LinKnot&amp;quot; and &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt; is installed at &amp;quot;C:\KnotTheory&amp;quot;, run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetDirectory[&amp;quot;C:\\LinKnot&amp;quot;];&lt;br /&gt;
&amp;lt;&amp;lt; LinKnots`&lt;br /&gt;
AppendTo[$Path, &amp;quot;C:\\&amp;quot;];&lt;br /&gt;
&amp;lt;&amp;lt; KnotTheory`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you can work with the both programs &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt; and &#039;&#039;LinKnot&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you need to have the complete program &#039;&#039;LinKnot&#039;&#039; visible (with the usage, description of all &#039;&#039;LinKnot&#039;&#039; functions, &#039;&#039;etc&#039;&#039;.) and run together &amp;lt;tt&amp;gt;KnotTheory`&amp;lt;/tt&amp;gt; and &#039;&#039;LinKnot&#039;&#039;, you can open the file &amp;lt;tt&amp;gt;K2KL.nb&amp;lt;/tt&amp;gt; from the directory &amp;lt;tt&amp;gt;LinKnot&amp;lt;/tt&amp;gt; and run the same command as before.&lt;br /&gt;
&lt;br /&gt;
After you&#039;ve done this, everything should just work. If everything doesn&#039;t just work, please complain to S. Jablan (jablans@yahoo.com).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Further usage notes by [[User:Jablans|Jablans]]====&lt;br /&gt;
&lt;br /&gt;
If you have any problem with running &#039;&#039;LinKnot&#039;&#039; (as a separate program) please do the following:&lt;br /&gt;
&lt;br /&gt;
# in your &#039;&#039;Mathematica&#039;&#039; directory (e.g., C:\Program Files\Wolfram Research\Mathematica\5.0) make a new folder named LinKnot;&lt;br /&gt;
# extract the contents of the file LinKnot.zip into the directory LinKnot;&lt;br /&gt;
# open the &amp;quot;Mathematica&amp;quot; notebook  K2KL.nb that you will find in the directory LinKnot;&lt;br /&gt;
# run the first line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetDirectory[&amp;quot;LinKnot&amp;quot;]&lt;br /&gt;
&amp;lt;&amp;lt; LinKnots.m&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then you can fix the appropriate path and work with &#039;&#039;KnotTheory&#039;&#039; and &#039;&#039;LinKnot&#039;&#039; as well.&lt;br /&gt;
&lt;br /&gt;
====See also====&lt;br /&gt;
&lt;br /&gt;
See also [[Extending/Modifying KnotTheory`#Lessons learnt from integrating LinKnot`]] for technical details on how LinKnot` and KnotTheory` were integrated.&lt;/div&gt;</summary>
		<author><name>BocmoNpasc</name></author>
	</entry>
</feed>