I want to produce animation which indicate cycle of length 5 in Petersen graph.I tried the following code but it indicate only single edges.I want to produce animation with all edges.
\documentclass{article}
\usepackage{animate}
\usepackage{tikz}
\usepackage{tkz-graph}
\usetikzlibrary{arrows}
\usetikzlibrary{lindenmayersystems}
\usepackage[paperheight=11cm,paperwidth=11cm,bottom=0cm,top=0.21cm,left=0cm,right=0cm]{geometry}
\begin{document}
\begin{animateinline}[controls,autoplay,loop]{2}
\multiframe{12}{n=18+72}{
\begin{tikzpicture}
\foreach \x in {18,90,...,306}
{
\draw(\x:5cm) circle (5pt)[fill=black];
\draw(\x:3cm) circle (5pt)[fill=black];
\draw(\x:5cm) [line width=3pt]-- (\x+72:5cm);
\draw(\x:3cm) [line width=3pt] -- (\x+144:3cm);
\draw(\x:5cm) [line width=3pt] -- (\x:3cm);
}
\draw(\n:5cm)[line width=7pt,color=blue]--(\n+72:5cm); \end{tikzpicture}
}
\end{animateinline}
\end{document}
