Skip to content

The macro \EdgeInGraphMod

July 28, 2010

This macro is useful for circulants. Observe:

\begin{tikzpicture}
  \grCycle[prefix=a,RA=3]{14}
  \EdgeInGraphMod{a}{8}{3}
\end{tikzpicture}

which produces:

https://graphtheoryinlatex.files.wordpress.com/2010/07/macro1.png

This means that the edges ai – ai+3 are added to the graph, starting when i=0 and whenever i+3<8. The “3” here is the third argument of the macro, and the “8” is the second. The “a” is the identifier of the vertices joined by the added edges.

Hence the circulant is obtained by:

\begin{tikzpicture}
  \grCycle[RA=3]{14}
  \EdgeInGraphMod{a}{14}{3}
\end{tikzpicture}

that is:

https://graphtheoryinlatex.files.wordpress.com/2010/07/macro2.png

Advertisements
No comments yet

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: