Illustrating permutations as braided group - TiKZ-PGF












3















I would like to illustrate the permutation group using the braid package in TikZ-PGF, such as this image (from Wikipedia):



Permutation



In fact I would like to illustrate the permutation group for N = 3, which should have 6 total configurations. Having followed the example provided, I so far have:



documentclass[tikz]{standalone}
usepackage{pgfplots}
usepackage{braids}

pgfplotsset{compat=newest}

begin{document}

begin{tikzpicture}
braid[style strands={1}{red},style
strands={2}{blue},style strands={3}{green}] (TEST2) at (5,0) s_1
s_3^{-1} s_1 s_2^{−1} s_1 s_2^{−1};
end{tikzpicture}
end{document}


However, I am finding it difficult to understand how to change the ordering. Any help would be appreciated.










share|improve this question




















  • 1





    @marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

    – Sid
    Oct 17 '18 at 2:39











  • @marmot, also pgfplots is required

    – Sid
    Oct 17 '18 at 2:43











  • On my machine it runs without usepackage{pgfplots}.

    – marmot
    Oct 17 '18 at 2:49











  • @Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

    – Luis Turcio
    Oct 18 '18 at 17:26
















3















I would like to illustrate the permutation group using the braid package in TikZ-PGF, such as this image (from Wikipedia):



Permutation



In fact I would like to illustrate the permutation group for N = 3, which should have 6 total configurations. Having followed the example provided, I so far have:



documentclass[tikz]{standalone}
usepackage{pgfplots}
usepackage{braids}

pgfplotsset{compat=newest}

begin{document}

begin{tikzpicture}
braid[style strands={1}{red},style
strands={2}{blue},style strands={3}{green}] (TEST2) at (5,0) s_1
s_3^{-1} s_1 s_2^{−1} s_1 s_2^{−1};
end{tikzpicture}
end{document}


However, I am finding it difficult to understand how to change the ordering. Any help would be appreciated.










share|improve this question




















  • 1





    @marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

    – Sid
    Oct 17 '18 at 2:39











  • @marmot, also pgfplots is required

    – Sid
    Oct 17 '18 at 2:43











  • On my machine it runs without usepackage{pgfplots}.

    – marmot
    Oct 17 '18 at 2:49











  • @Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

    – Luis Turcio
    Oct 18 '18 at 17:26














3












3








3


1






I would like to illustrate the permutation group using the braid package in TikZ-PGF, such as this image (from Wikipedia):



Permutation



In fact I would like to illustrate the permutation group for N = 3, which should have 6 total configurations. Having followed the example provided, I so far have:



documentclass[tikz]{standalone}
usepackage{pgfplots}
usepackage{braids}

pgfplotsset{compat=newest}

begin{document}

begin{tikzpicture}
braid[style strands={1}{red},style
strands={2}{blue},style strands={3}{green}] (TEST2) at (5,0) s_1
s_3^{-1} s_1 s_2^{−1} s_1 s_2^{−1};
end{tikzpicture}
end{document}


However, I am finding it difficult to understand how to change the ordering. Any help would be appreciated.










share|improve this question
















I would like to illustrate the permutation group using the braid package in TikZ-PGF, such as this image (from Wikipedia):



Permutation



In fact I would like to illustrate the permutation group for N = 3, which should have 6 total configurations. Having followed the example provided, I so far have:



documentclass[tikz]{standalone}
usepackage{pgfplots}
usepackage{braids}

pgfplotsset{compat=newest}

begin{document}

begin{tikzpicture}
braid[style strands={1}{red},style
strands={2}{blue},style strands={3}{green}] (TEST2) at (5,0) s_1
s_3^{-1} s_1 s_2^{−1} s_1 s_2^{−1};
end{tikzpicture}
end{document}


However, I am finding it difficult to understand how to change the ordering. Any help would be appreciated.







tikz-pgf braids






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 17 '18 at 2:43







Sid

















asked Oct 17 '18 at 1:55









SidSid

694314




694314








  • 1





    @marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

    – Sid
    Oct 17 '18 at 2:39











  • @marmot, also pgfplots is required

    – Sid
    Oct 17 '18 at 2:43











  • On my machine it runs without usepackage{pgfplots}.

    – marmot
    Oct 17 '18 at 2:49











  • @Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

    – Luis Turcio
    Oct 18 '18 at 17:26














  • 1





    @marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

    – Sid
    Oct 17 '18 at 2:39











  • @marmot, also pgfplots is required

    – Sid
    Oct 17 '18 at 2:43











  • On my machine it runs without usepackage{pgfplots}.

    – marmot
    Oct 17 '18 at 2:49











  • @Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

    – Luis Turcio
    Oct 18 '18 at 17:26








1




1





@marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

– Sid
Oct 17 '18 at 2:39





@marmot, there is a documentation for knots (mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/spath3/knots.pdf) written by the same author as the braids package (An­drew Stacey). The braids don't have any knots, but that's all I know. I'll update the MWE.

– Sid
Oct 17 '18 at 2:39













@marmot, also pgfplots is required

– Sid
Oct 17 '18 at 2:43





@marmot, also pgfplots is required

– Sid
Oct 17 '18 at 2:43













On my machine it runs without usepackage{pgfplots}.

– marmot
Oct 17 '18 at 2:49





On my machine it runs without usepackage{pgfplots}.

– marmot
Oct 17 '18 at 2:49













@Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

– Luis Turcio
Oct 18 '18 at 17:26





@Sid, maybe the answer and package from this question: (tex.stackexchange.com/questions/32125/braid-diagrams-in-tikz) could be useful

– Luis Turcio
Oct 18 '18 at 17:26










1 Answer
1






active

oldest

votes


















3














My apologies for being a bit late to the party, but here's the permutations of 3 objects represented as braids using the braids package.



documentclass[tikz,border=1cm]{standalone}
%url{https://tex.stackexchange.com/q/455488/86}
usepackage{tikz}
usepackage{braids}

begin{document}

begin{tikzpicture}[
/pgf/braid/.cd,
style strands={1}{red},
style strands={2}{blue},
style strands={3}{green},
number of strands=3
]
braid (identity) at (0,0) 1 1 1;
node at ([yshift=-1cm]identity-rev-2-e) {Identity};

braid (123) at ([xshift=2cm]identity-3-s) 1 s_2^{-1} s_1;
node at ([yshift=-1cm]123-rev-2-e) {((123))};

braid (321) at ([xshift=2cm]123-3-s) 1 s_1^{-1} s_2;
node at ([yshift=-1cm]321-rev-2-e) {((321))};

braid (12) at ([yshift=-2cm]identity-rev-1-e) 1 s_1^{-1} 1;
node at ([yshift=-1cm]12-rev-2-e) {((12))};

braid (23) at ([yshift=-2cm]123-rev-1-e) 1 s_2 1;
node at ([yshift=-1cm]23-rev-2-e) {((23))};

braid (31) at ([yshift=-2cm]321-rev-1-e) s_1^{-1} s_2 s_1^{-1};
node at ([yshift=-1cm]31-rev-2-e) {((31))};


end{tikzpicture}
end{document}


Obviously, I had free choice on the over-under crossings.



Result:



permutations in the braid group






share|improve this answer
























  • I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

    – Loop Space
    Mar 9 at 10:27











  • Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

    – Sid
    Mar 14 at 3:06











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455488%2fillustrating-permutations-as-braided-group-tikz-pgf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














My apologies for being a bit late to the party, but here's the permutations of 3 objects represented as braids using the braids package.



documentclass[tikz,border=1cm]{standalone}
%url{https://tex.stackexchange.com/q/455488/86}
usepackage{tikz}
usepackage{braids}

begin{document}

begin{tikzpicture}[
/pgf/braid/.cd,
style strands={1}{red},
style strands={2}{blue},
style strands={3}{green},
number of strands=3
]
braid (identity) at (0,0) 1 1 1;
node at ([yshift=-1cm]identity-rev-2-e) {Identity};

braid (123) at ([xshift=2cm]identity-3-s) 1 s_2^{-1} s_1;
node at ([yshift=-1cm]123-rev-2-e) {((123))};

braid (321) at ([xshift=2cm]123-3-s) 1 s_1^{-1} s_2;
node at ([yshift=-1cm]321-rev-2-e) {((321))};

braid (12) at ([yshift=-2cm]identity-rev-1-e) 1 s_1^{-1} 1;
node at ([yshift=-1cm]12-rev-2-e) {((12))};

braid (23) at ([yshift=-2cm]123-rev-1-e) 1 s_2 1;
node at ([yshift=-1cm]23-rev-2-e) {((23))};

braid (31) at ([yshift=-2cm]321-rev-1-e) s_1^{-1} s_2 s_1^{-1};
node at ([yshift=-1cm]31-rev-2-e) {((31))};


end{tikzpicture}
end{document}


Obviously, I had free choice on the over-under crossings.



Result:



permutations in the braid group






share|improve this answer
























  • I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

    – Loop Space
    Mar 9 at 10:27











  • Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

    – Sid
    Mar 14 at 3:06
















3














My apologies for being a bit late to the party, but here's the permutations of 3 objects represented as braids using the braids package.



documentclass[tikz,border=1cm]{standalone}
%url{https://tex.stackexchange.com/q/455488/86}
usepackage{tikz}
usepackage{braids}

begin{document}

begin{tikzpicture}[
/pgf/braid/.cd,
style strands={1}{red},
style strands={2}{blue},
style strands={3}{green},
number of strands=3
]
braid (identity) at (0,0) 1 1 1;
node at ([yshift=-1cm]identity-rev-2-e) {Identity};

braid (123) at ([xshift=2cm]identity-3-s) 1 s_2^{-1} s_1;
node at ([yshift=-1cm]123-rev-2-e) {((123))};

braid (321) at ([xshift=2cm]123-3-s) 1 s_1^{-1} s_2;
node at ([yshift=-1cm]321-rev-2-e) {((321))};

braid (12) at ([yshift=-2cm]identity-rev-1-e) 1 s_1^{-1} 1;
node at ([yshift=-1cm]12-rev-2-e) {((12))};

braid (23) at ([yshift=-2cm]123-rev-1-e) 1 s_2 1;
node at ([yshift=-1cm]23-rev-2-e) {((23))};

braid (31) at ([yshift=-2cm]321-rev-1-e) s_1^{-1} s_2 s_1^{-1};
node at ([yshift=-1cm]31-rev-2-e) {((31))};


end{tikzpicture}
end{document}


Obviously, I had free choice on the over-under crossings.



Result:



permutations in the braid group






share|improve this answer
























  • I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

    – Loop Space
    Mar 9 at 10:27











  • Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

    – Sid
    Mar 14 at 3:06














3












3








3







My apologies for being a bit late to the party, but here's the permutations of 3 objects represented as braids using the braids package.



documentclass[tikz,border=1cm]{standalone}
%url{https://tex.stackexchange.com/q/455488/86}
usepackage{tikz}
usepackage{braids}

begin{document}

begin{tikzpicture}[
/pgf/braid/.cd,
style strands={1}{red},
style strands={2}{blue},
style strands={3}{green},
number of strands=3
]
braid (identity) at (0,0) 1 1 1;
node at ([yshift=-1cm]identity-rev-2-e) {Identity};

braid (123) at ([xshift=2cm]identity-3-s) 1 s_2^{-1} s_1;
node at ([yshift=-1cm]123-rev-2-e) {((123))};

braid (321) at ([xshift=2cm]123-3-s) 1 s_1^{-1} s_2;
node at ([yshift=-1cm]321-rev-2-e) {((321))};

braid (12) at ([yshift=-2cm]identity-rev-1-e) 1 s_1^{-1} 1;
node at ([yshift=-1cm]12-rev-2-e) {((12))};

braid (23) at ([yshift=-2cm]123-rev-1-e) 1 s_2 1;
node at ([yshift=-1cm]23-rev-2-e) {((23))};

braid (31) at ([yshift=-2cm]321-rev-1-e) s_1^{-1} s_2 s_1^{-1};
node at ([yshift=-1cm]31-rev-2-e) {((31))};


end{tikzpicture}
end{document}


Obviously, I had free choice on the over-under crossings.



Result:



permutations in the braid group






share|improve this answer













My apologies for being a bit late to the party, but here's the permutations of 3 objects represented as braids using the braids package.



documentclass[tikz,border=1cm]{standalone}
%url{https://tex.stackexchange.com/q/455488/86}
usepackage{tikz}
usepackage{braids}

begin{document}

begin{tikzpicture}[
/pgf/braid/.cd,
style strands={1}{red},
style strands={2}{blue},
style strands={3}{green},
number of strands=3
]
braid (identity) at (0,0) 1 1 1;
node at ([yshift=-1cm]identity-rev-2-e) {Identity};

braid (123) at ([xshift=2cm]identity-3-s) 1 s_2^{-1} s_1;
node at ([yshift=-1cm]123-rev-2-e) {((123))};

braid (321) at ([xshift=2cm]123-3-s) 1 s_1^{-1} s_2;
node at ([yshift=-1cm]321-rev-2-e) {((321))};

braid (12) at ([yshift=-2cm]identity-rev-1-e) 1 s_1^{-1} 1;
node at ([yshift=-1cm]12-rev-2-e) {((12))};

braid (23) at ([yshift=-2cm]123-rev-1-e) 1 s_2 1;
node at ([yshift=-1cm]23-rev-2-e) {((23))};

braid (31) at ([yshift=-2cm]321-rev-1-e) s_1^{-1} s_2 s_1^{-1};
node at ([yshift=-1cm]31-rev-2-e) {((31))};


end{tikzpicture}
end{document}


Obviously, I had free choice on the over-under crossings.



Result:



permutations in the braid group







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 9 at 10:19









Loop SpaceLoop Space

113k29306609




113k29306609













  • I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

    – Loop Space
    Mar 9 at 10:27











  • Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

    – Sid
    Mar 14 at 3:06



















  • I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

    – Loop Space
    Mar 9 at 10:27











  • Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

    – Sid
    Mar 14 at 3:06

















I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

– Loop Space
Mar 9 at 10:27





I should note that this uses the more recent version of the braids package which isn't as yet available on CTAN (but is on github).

– Loop Space
Mar 9 at 10:27













Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

– Sid
Mar 14 at 3:06





Better late than never ;) Is there some user manual? I don't get the syntax for this but it's exactly what I wanted.

– Sid
Mar 14 at 3:06


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455488%2fillustrating-permutations-as-braided-group-tikz-pgf%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?