سلام
خواستهی شما به کمک بستهی forest
به سادگی قابل انجام است.
دستورات شما مطابق زیر است:
\documentclass[12pt]{report}
\usepackage{tikz,forest}
\pagestyle{empty}
\usetikzlibrary{calc,positioning,backgrounds,arrows.meta}
\begin{document}
\begin{forest}
for tree={
child anchor=west,
parent anchor=east,
grow=east,
anchor=west,
edge path={
\noexpand\path[\forestoption{edge}]
(.child anchor) -| +(-5pt,0) -- +(-5pt,0) |-
(!u.parent anchor)\forestoption{edge label};
},
}
[master
[11111
[Everything
]
[Everything
]
]
[22222
[Everything
]
[Everything
]
]
[33333
[Everything
]
[Everything
]
]
[44444
[Everything
]
[Everything
]
]
[55555
[Everything
]
[Everything
]
]
]
\end{forest}
\end{document}
و خروجی زیر را دارید:
و این هم برای راست به چپ:
\documentclass[12pt]{report}
\usepackage{tikz,forest}
\pagestyle{empty}
\usetikzlibrary{calc,positioning,backgrounds,arrows.meta}
\begin{document}
\begin{forest}
for tree={
child anchor=east,
parent anchor=west,
grow=west,
anchor=east,
edge path={
\noexpand\path[\forestoption{edge}]
(.child anchor) -| +(5pt,0) -- +(5pt,0) |-
(!u.parent anchor)\forestoption{edge label};
},
}
[master
[11111
[Everything
]
[Everything
]
]
[22222
[Everything
]
[Everything
]
]
[33333
[Everything
]
[Everything
]
]
[44444
[Everything
]
[Everything
]
]
[55555
[Everything
]
[Everything
]
]
]
\end{forest}
\end{document}
با خروجی زیر:
موفق باشید.