有人可以帮我在 Tikz 中画下图吗?
Would somebody help me to draw the following figure in Tikz?
谁能帮我用Tikz画下图?
It is a graph we need to include in our latest paper
你不应该在这里问这样的问题。您应该自己做功课,请参阅帮助页面 (https://whosebug.com/help/on-topic)。
不管怎样,我给你一个开始:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\node[state] (v_n) {$v_n$};
\node[state] (v_n_1) [below=of v_n] {$v_{n-1}$};
\node[state] (v_n_2) [below=of v_n_1] {$v_{n-2}$};
\node[state] (v_n_3) [below=of v_n_2] {$v_{n-3}$};
\node[state] (v_4) [below=of v_n_3] {$v_4$};
\node[state] (v_3) [below=of v_4] {$v_3$};
\node[state] (v_2) [below=of v_3] {$v_2$};
\node[state] (v_1) [below=of v_2] {$v_1$};
\node[state] (u) [below=of v_1] {$u$};
\path[-] (u) edge [bend left] (v_1)
(u) edge [bend right] (v_2)
(u) edge [bend left] (v_3)
(u) edge [bend right] (v_4)
(u) edge [bend right] (v_n_3)
(u) edge [bend left] (v_n_2)
(u) edge [bend right] (v_n_1)
(u) edge [bend left] (v_n)
(v_1) edge [bend left] (v_3)
(v_2) edge [bend right] (v_4)
(v_n_3) edge [bend right] (v_n_1)
(v_n_2) edge [bend left] (v_n)
(v_1) edge (v_2)
(v_2) edge (v_3)
(v_3) edge (v_4)
(v_n_3) edge (v_n_2)
(v_n_2) edge (v_n_1)
(v_n_1) edge (v_n);
\path[dashed] (v_4) edge (v_n_3);
\end{tikzpicture}
\end{document}
谁能帮我用Tikz画下图?
It is a graph we need to include in our latest paper
你不应该在这里问这样的问题。您应该自己做功课,请参阅帮助页面 (https://whosebug.com/help/on-topic)。
不管怎样,我给你一个开始:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\node[state] (v_n) {$v_n$};
\node[state] (v_n_1) [below=of v_n] {$v_{n-1}$};
\node[state] (v_n_2) [below=of v_n_1] {$v_{n-2}$};
\node[state] (v_n_3) [below=of v_n_2] {$v_{n-3}$};
\node[state] (v_4) [below=of v_n_3] {$v_4$};
\node[state] (v_3) [below=of v_4] {$v_3$};
\node[state] (v_2) [below=of v_3] {$v_2$};
\node[state] (v_1) [below=of v_2] {$v_1$};
\node[state] (u) [below=of v_1] {$u$};
\path[-] (u) edge [bend left] (v_1)
(u) edge [bend right] (v_2)
(u) edge [bend left] (v_3)
(u) edge [bend right] (v_4)
(u) edge [bend right] (v_n_3)
(u) edge [bend left] (v_n_2)
(u) edge [bend right] (v_n_1)
(u) edge [bend left] (v_n)
(v_1) edge [bend left] (v_3)
(v_2) edge [bend right] (v_4)
(v_n_3) edge [bend right] (v_n_1)
(v_n_2) edge [bend left] (v_n)
(v_1) edge (v_2)
(v_2) edge (v_3)
(v_3) edge (v_4)
(v_n_3) edge (v_n_2)
(v_n_2) edge (v_n_1)
(v_n_1) edge (v_n);
\path[dashed] (v_4) edge (v_n_3);
\end{tikzpicture}
\end{document}