pgf gif 설명

pgf gif 설명

저는 라텍스와 pgfplots를 처음 접했습니다. gif를 만들려고 합니다. 누구든지 <\fr>다음 코드의 pgfonlayer 섹션 의 기능이 무엇인지 설명해 주시겠습니까 ?

gif 이미지

\documentclass[hyperref={pdfpagelabels=false}]{beamer}
\usepackage{lmodern}

\usepackage{tikz}
\usetikzlibrary{arrows,shapes}


\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]

\usetheme{Frankfurt}

\setbeamertemplate{navigation symbols}{}%
\tikzset{
   error_00/.style={color=blue,thin},
}
\begin{document}
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}

\begin{frame}
    \begin{figure}
        \begin{tikzpicture}[scale=1]

\foreach \pos/\name in {{(-12.117,45.857)/a}, {(-12.117,45.857)/b}, {(-7.809,45.857)/c}}
                \node (\name) at \pos {};


\draw[x=1 cm,y=1 cm,error_00] (-10.628,45.857) -- (-7.809,45.857);
\begin{pgfonlayer}{background}
                \foreach \source / \dest / \fr in {a/b/1/, b/c/2/}
                    \path<\fr>[selected edge] (\source.center) edge (\dest.center);
\end{pgfonlayer}
\end{tikzpicture}
\end{figure}
\end{frame}
\end{document}

이 링크에서 파일을 컴파일합니다.https://martin-thoma.com/how-to-visualize-graph-algorithms-with-latex. 또한 빨간색 선이 깜박이는 것을 원하지 않습니다. 그냥 나타나기를 바랄 뿐입니다. 최소한의 변화로 이를 달성할 수 있는 아이디어. 미리 감사드립니다.

관련 정보