圆框层次结构

圆框层次结构

你能帮我画一下吗?我不知道怎么画 :(

在此处输入图片描述

梅威瑟:

\documentclass{article}
\usepackage[edges]{forest}
\usetikzlibrary{shadows.blur}
\begin{document}
\begin{forest}
forked edges,
for tree={draw,align=center,edge={-latex},fill=white,blur shadow}
[Recommendation\\ Systems
 [1.1]
 [1.2
  [1.2.1
   [1.2.1.1]
   [1.2.1.2]
  ]
  [1.2.2
   [1.2.2.1]
   [1.2.2.2]
   [1.2.2.3]
  ]
 ]
 [1.3]
]
\end{forest}
\end{document}

答案1

稍微重新设计了一下显示树,你喜欢画这样的东西吗:

在此处输入图片描述

\documentclass[margin=3.14159]{standalone}
\usepackage{forest}
\usetikzlibrary{shadows}

\begin{document}
    \begin{forest}
for tree = {
% nodes
    draw, rounded corners, inner sep=2pt,
    align=center,
D/.append style= {fill=white, drop shadow},
% labels
EL/.style args = {#1/#2}{% shortens for (my) edge label
                         edge label={node[pos=0.66, 
                                          font=\scriptsize\linespread{0.84}\selectfont,
                                          inner sep=2pt, align=center, 
                                          anchor=south #1]{#2}}
                        },
% tree
    l sep=12mm,
calign=fixed edge angles,
for current and siblings={anchor=center},
if n children=1{anchor=east}{anchor=west},  
          } 
[Data, D, %circle
    [Domain, D, EL=east/Labeled%circle
        [Division, D, EL=east/Can be\\ devided%circle
            [Input space\\ Clasification, EL=east/Separable]
            [Feature space\\ Clasification, EL=west/Unseparable]
        ]
        [Regresion, EL=west/Cannot be\\ devided
        ]
    ]
    [Clustering, EL=west/Not\\ Labeled]
]
\end{forest}
\end{document}

相关内容