【发布时间】:2021-08-16 22:21:24
【问题描述】:
我喜欢在 Graphviz 图表中添加一个反馈箭头,其中普通的“流”保持水平,但反馈应该是圆形的,就像下面手动添加的蓝色箭头一样。
这是我到目前为止所尝试的。我将 DiagrammR 包用于 R 语言,但建议使用普通或 python Graphviz,或者当然也会有所帮助。
library("DiagrammeR")
grViz("digraph feedback {
graph [rankdir = 'LR']
node [shape = box]
Population
node [shape = circle]
Source Sink
node [shape = none]
Source -> Growth -> Population -> Death -> Sink
Population -> Growth [constraint = false]
Death -> Population [constraint = false]
}")
【问题讨论】:
标签: r graphviz pygraphviz