A flower snark (${J_{5}}$).

\begin{tikzpicture}
\SetUpEdge[color=blue,lw=2pt]
\begin{scope}[rotate=90]
\grCycle[prefix=a,RA=1]{5}
\grEmptyCycle[prefix=b,RA=3]{5}
\end{scope}
\begin{scope}[rotate=90+24]
\grEmptyCycle[prefix=c,RA=3]{5}
\end{scope}
\begin{scope}[rotate=90-24]
\grEmptyCycle[prefix=d,RA=3]{5}
\end{scope}
\SetUpEdge[color=red,lw=2pt]
\EdgeIdentity{a}{b}{5}
\EdgeIdentity{b}{c}{5}
\EdgeIdentity{b}{d}{5}
\EdgeMod{c}{d}{5}{1}
\EdgeMod{c}{d}{5}{4}
\end{tikzpicture}

March 17, 2010 7:58 pm

Hello. I’m toying around with LaTeX and I came across your page. Your examples and the plugin are great! Thanks a lot for the tips!

Do you know if it’s possible to make it so an edge can go to the same vertex? For example, \Edges(4, 4)… It doesn’t seem to draw it that way.

Your help will be appretiated. I’m transcribing my graph course notes with LaTeX and it’s coming out great!

March 17, 2010 10:25 pm

Hi Esteban.

\Loop(4) should work. I don’t have examples with loops, since the graphs I work with don’t have them, but I’ll try to include some later. I’m glad you found this info useful.

March 18, 2010 3:05 pm

Hi again!
I tried that and got the following error:

Underfull \vbox (badness 10000) has occurred while \output is active [3]

! Package pgf Error: Arrow end type “stealth”’ unknown.

See the pgf package documentation for explanation.
Type H for immediate help.

l.85 \Loop(4)

March 18, 2010 5:28 pm

I see now that \Loop requires

\usetikzlibrary{arrows}

May 27, 2010 11:04 am

Hi!
I also came across your blog looking for an automated way to draw graphs. Specifically, I am looking at networks diagram that could be auto-drawn, based on a couple of pre entered specifications.

So this question is not really related to this specific post. (The flower snark J5)
But on your previous blog, there is a vortex that really is similar to a network diagram.

I think everything is there to do it. Of course, there would be some work involved. What do you think? Have you seen something similar before?

Thanks for any feedback you can provide.