0

I wrote this code but I would like to add dots between the points to indicate that there are more points between the points I draw.

\documentclass[border=3.141592]{standalone}
\usepackage{forest}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{forest}
  for tree={
    edge = {Stealth-},
    grow = north
            }
[ $e(x)$
   [$\begin{matrix}
       \vdots\\
       f_{n_f}^{-1}(e(x))
   \end{matrix}$]
    [$\begin{matrix}
        \vdots \\
        f_{2}^{-1}(e(x))
    \end{matrix}$]
    
    [$f_{1}^{-1}(e(x))$,
        [$\begin{matrix}
          \vdots\\
          f_{n_f}^{-1}(f_{2}^{-1}(e(x)))
      \end{matrix}$]  
       [$\begin{matrix}
          \vdots\\
          f_{2}^{-2}(e(x))
      \end{matrix}$]
      [$\begin{matrix}
          \vdots\\
        f_{1}^{-1}(f_{2}^{-1}(e(x)))
      \end{matrix}$]
    ]
]
\end{forest}
\end{document}

The graph should look like this:

enter image description here

Can someone please help me?

2
  • I am not sure if I understand the question. If the horizontal dots indicate more inverse functions, put an arrow from the dots to the item below. Also I would reposition the middle function in the middle row so vertical dots do not seem like they come from the function above. Possibly I am misinterpreting your diagram.
    – Jay
    Aug 5 at 18:04
  • [leaf [$\vdots$, no edge]] gives you dots above the leaf. The same can be done for the horizontal \dots. I don't quite understand why you're using matrix here. Aug 5 at 19:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.