答案1
作为起点:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\foreach \n in {0,...,6} {
\node at ({(360/7*\n)-90}:1) (n\n) {\n};
}
\foreach \n [count = \i] in {0,...,5} {
\draw[->,blue] (n\n) to[bend right=10] (n\i);
}
\draw[->,blue] (n6) to[bend right=10] (n0);
\draw[->,red] (n0) to[out=240,in=300,distance=20] (n0);
\foreach \x/\y in {3/2,4/5} {
\draw[->,red] (n\x) to[out={360/7*\x-90},in={360/7*\y-90},distance=20] (n\y);
}
\foreach \x/\y in {1/3,6/4} {
\draw[->,red] (n\x) to[out={360/7*\x+90},in={360/7*\y+90},distance=10] (n\y);
}
\foreach \x/\y in {5/1,2/6} {
\draw[->,red] (n\x) to[out={360/7*\x+90},in={360/7*\y+90},distance=10] (n\y);
}
\end{tikzpicture}
\end{document}
我期待这个代码的改进:)