graph - 在 Latex 中绘制有向图
问题描述
我想画一个从 A 指向 B、C、D 的箭头,如图所示。我如何在乳胶中做到这一点。
到目前为止,我有:
\begin{tikzpicture}
\node[circle,draw](z){$A$}
child{node[circle,draw]{B}}
child{node[circle,draw]{C}}
child{node[circle,draw]{D}}
child{node[circle,draw]{E}}
child{node[circle,draw]{F}}
child{node[circle,draw]{G}};
\end{tikzpicture}
解决方案
nvm,我想通了。
\begin{tikzpicture}[edge from parent/.style={draw,-latex}]
\node[circle,draw](z){$A$}
child{node[circle,draw]{B}}
child{node[circle,draw]{C}}
child{node[circle,draw]{D}}
child{node[circle,draw]{E}}
child{node[circle,draw]{F}}
child{node[circle,draw]{G}};
\end{tikzpicture}
推荐阅读
- excel - 如何跨 VBA 中的多个列独立运行此检查?
- r - 多重插补的倾向得分匹配
- python - ValueError:logits 和标签必须具有相同的形状 ((None, 32) vs (None, 1))
- c++ - 将随机整数转换为范围 [min,max] 而不进行分支
- node.js - 运行 npm run compile 时出现 NPM 错误
- python - 使用openpyxl将工作表(数据+样式)从工作簿复制到Python中的另一个
- php - simplexml_load_string 将注释与注释节点混淆
- google-analytics - 使用 Google Optimize 进行站点范围的 AB 测试
- flopy - 是否可以在 Python 中使用 modflow 包 RT3d?
- excel - 相当于 Ctrl + Shift + End 的 VBA 脚本