我正在使用 tkz-graph 創建一個圖形。但邊緣有兩個箭頭缺失。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{tkz-graph}
\renewcommand*{\EdgeLineWidth}{0.15pt}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=.9]
\GraphInit[vstyle=Empty]
\tikzset{EdgeStyle/.style = {->}}
\tikzset{VertexStyle/.style = {minimum size = 24 pt}}
\Vertex[Math, L=f(s)]{A}
\Vertex[Math, L=s_1, x=-8,y=-2]{B}
\Vertex[Math, L=-s_1,x=-6,y=-2]{C}
\Vertex[Math, L=\dots, x=-4,y=-2]{D}
\Vertex[Math, L=s_j, x=-2,y=-2]{E}
\Vertex[Math, L=-s_j,x=0,y=-2]{F}
\Vertex[Math, L=\dots, x=2,y=-2]{G}
\Vertex[Math, L=s_{n-1}, x=4,y=-2]{H}
\Vertex[Math, L=-s_{n-1}, x=6,y=-2]{I}
\Vertex[Math, L=s_n, x=8,y=-2]{J}
\Edges(A, B)
\Edges (A, C)
\Edges( A, D)
\Edge[style={->}](A)(E)
\Edges( A, F)
\Edges( A, G)
\Edges( A, H)
\Edges( A, I)
\Edges( A, J)
\end{tikzpicture}
\end{center}
\end{document}
答案1
歡迎!正如評論中所說,您必須將 的值變更\renewcommand*{\EdgeLineWidth}{0.15pt}
為更高的值。 OP說最好的值是0.3pt
(或更高)。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{tkz-graph}
\renewcommand*{\EdgeLineWidth}{0.3pt}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=.9]
\GraphInit[vstyle=Empty]
\tikzset{EdgeStyle/.style = {->}}
\tikzset{VertexStyle/.style = {minimum size = 24 pt}}
\Vertex[Math, L=f(s)]{A}
\Vertex[Math, L=s_1, x=-8,y=-2]{B}
\Vertex[Math, L=-s_1,x=-6,y=-2]{C}
\Vertex[Math, L=\dots, x=-4,y=-2]{D}
\Vertex[Math, L=s_j, x=-2,y=-2]{E}
\Vertex[Math, L=-s_j,x=0,y=-2]{F}
\Vertex[Math, L=\dots, x=2,y=-2]{G}
\Vertex[Math, L=s_{n-1}, x=4,y=-2]{H}
\Vertex[Math, L=-s_{n-1}, x=6,y=-2]{I}
\Vertex[Math, L=s_n, x=8,y=-2]{J}
\Edges(A, B)
\Edges (A, C)
\Edges( A, D)
\Edge[style={->}](A)(E)
\Edges( A, F)
\Edges( A, G)
\Edges( A, H)
\Edges( A, I)
\Edges( A, J)
\end{tikzpicture}
\end{center}
\end{document}