答案1
使用该tikz
包:
\documentclass[border=3.141592]{standalone}
\usepackage{tikz}
\usetikzlibrary{chains,
positioning}
\begin{document}
\begin{tikzpicture}[
node distance = 12mm,
start chain = v going right,
V/.style = {circle,draw, fill=blue, inner sep=1pt,
node contents={}, on chain},
every label/.append style = {font=\footnotesize\sffamily, text=blue}
]
\foreach \x in {A, B, C, D}
\node[V, label=\x];
%
\draw (v-1) to (v-2)
(v-1) to [bend left] (v-2)
(v-1) to [bend left=45] (v-3)
(v-1) to [bend right] (v-2)
(v-1) to [bend right=45] (v-2)
(v-1) to [bend right=45] (v-3)
(v-2) to [bend left] (v-3)
(v-2) to [bend right] (v-3)
(v-3) to [bend left] (v-4)
(v-3) to (v-4)
(v-3) to [bend right] (v-4);
\end{tikzpicture}
\end{document}
答案2
以下是一种实现此操作的方法pstricks
:
\documentclass[border=6pt, svgnames]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(-1,-1.5)(10,1.5)
\sffamily\color{Blue} \psset{PtNameMath=false}
\pstGeonode[PosAngle={120,90,90,60}](0,0){A}(3,0){B}(6,0){C}(9,0){D}
\psline(A)(B) \psline(C)(D)
\pcarc[arcangle=40](A)(B)\pcarc[arcangle=60](B)(C) \pcarc[arcangle=40](C)(D)
\pcarc[arcangle=-30](A)(B)\pcarc[arcangle=-30](B)(C) \pcarc[arcangle=-30](C)(D)
\pcarc[arcangle=60](A)(C)\pcarc[arcangle=-60](A)(C)
\pcarc[arcangle=-60](A)(B)
\end{pspicture}
\end{document}