2

I am creating a figure using tkz-graph. But there are two arrows of the edges are missing.

\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}

The plot produced looks like follows:enter image description here The two edges around the middle lose the arrow. I tried differently but no success.

11
  • Did you try \Edges (A, E) like others?
    – Sigur
    Feb 22, 2019 at 20:15
  • @Sigur: Yes. Still not working. Feb 22, 2019 at 20:16
  • 2
    Thanks. I tried to zoom in and actually the arrow appears as I zoomed to around 500% size. Is there a way to make it look normal in the normal size. Feb 22, 2019 at 20:22
  • 1
    I think it is due to \renewcommand*{\EdgeLineWidth}{0.15pt}; try to use a higher value.
    – manooooh
    Feb 22, 2019 at 20:23
  • 2
    @manooooh: Thanks. 0.3 or higher works. Feb 22, 2019 at 20:25

1 Answer 1

5

Welcome!! As said in comments, you have to change the value of \renewcommand*{\EdgeLineWidth}{0.15pt} to a higher one. OP said that the best value is 0.3pt (or higher).

\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}

MWE's output

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .