I am very new using Tikz, I am trying to draw this graph:


\begin{tikzpicture}[y=.6cm, x=.6cm,font=\small]

\draw [latex-latex,dashed](0,4)  --  (3,8);
\draw [latex-latex,dashed](8,8)  --  (11,4);
\draw [latex-latex,dashed](3,0)  --  (8,0);

\draw [latex-latex,](0,4)  --  (3,0);
\draw [latex-latex,](8,0)  --  (11,4);
\draw [latex-latex](3,8)  --  (8,8);

\filldraw[fill=black!40,draw=black!80] (0,4) circle (2pt) node[anchor=east]{e} ;
\filldraw[fill=black!40,draw=black!80] (3,0) circle (2pt) node[anchor=north]{(23)} ;
\filldraw[fill=black!40,draw=black!80] (3,8) circle (2pt) node[anchor=south]{(12)} ;
\filldraw[fill=black!40,draw=black!80] (8,0) circle (2pt) node[anchor=north]{(132)} ;
\filldraw[fill=black!40,draw=black!80] (8,8) circle (2pt) node[anchor=south]{(123)} ;
\filldraw[fill=black!40,draw=black!80] (11,4) circle (2pt) node[anchor=west]{(13)} ;


But I really don't like the result.

This is my result

Is there an easy way to do the same graph better? Thanks.

  • 1
    Well, what is bad on your graph? To do it better is personal opinion, I think, because I'm sure my "better" would not be the same with your "better" ... What should that graph show, can you explain in words in your question?
    – Mensch
    Feb 26, 2019 at 20:06
  • Jmm I am thinking in something more circular. Like if the vertex are in a circle or something like that.
    – TeemoJg
    Feb 26, 2019 at 20:15

1 Answer 1


If your question is whether one can shorten the code, the answer is yes. (Just for curiosity: what is so special about this Z_3 subgroup of S_3, and why are some edges dashed?)


\begin{tikzpicture}[y=.6cm, x=.6cm,font=\small,bullet/.style={inner sep=0pt,
 minimum size=4pt,circle,fill=black!40,draw=black!80}]
  \node[bullet] (v6){};
  \foreach  [count=\X,remember=\X as \LastX (initially 6)] \Y in 
  {\path (v\LastX) ++ (\X*60:5)  node[bullet,label={-60+\X*60}:\Y] (v\X){};
  \draw[latex-latex] (v\LastX) -- (v\X);
  \draw[latex-latex,dashed] (v\LastX) -- (v\X);

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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