Skip to content

The flower snark J5

March 8, 2010

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}
Advertisements
6 Comments leave one →
  1. Esteban Rodriguez permalink
    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!

    • rvf0068 permalink*
      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.

      • Esteban Rodriguez permalink
        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)

  2. rvf0068 permalink*
    March 18, 2010 5:28 pm

    I see now that \Loop requires

    \usetikzlibrary{arrows}

  3. Jean-Francois permalink
    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: