当使用节点/子样式时,可以实现fork down
如图所示的边样式:
类似边缘样式的语法是什么,但使用graph
?
下面的 MWE 产生倾斜的边缘:
\documentclass[10pt,landscape,letterpaper]{article}
\usepackage{tikz}
\usetikzlibrary{graphs, graphdrawing}
\usegdlibrary{trees, layered}
\begin{document}
\begin{tikzpicture}
\graph [
binary tree layout,
sibling distance=4mm,
level distance=8mm,
components go right top aligned,
component sep=1pt,
nodes=draw
]
{
Supervisor
-- Current Employee
-- {
Subordinate 1--{Worker 01,Worker 02},
Subordinate 2--{SubSubordinate 21--{Worker 21,Worker 22,Worker 23}
},
Subordinate 3-- SubSubordinate01--{Worker 11,Worker 12}
};
};
\end{tikzpicture}
\end{document}