graphviz dot 字段连接外键

2022-01-09 09:56:27 浏览数 (1)

图片1.png

代码语言:javascript复制
digraph "G" {
graph [fontname = "Microsoft YaHei"  rankdir   = "LR"      label=""]
node  [fontname = "Microsoft YaHei"  shape     = "record"  ]
edge  [fontname = "Microsoft YaHei"  arrowhead = "none"    ]

<A> [label = "A|<id>id|<B_id>B_id"]
<B> [label = "B|<id>id|<xxx>xxx"  ]

<A>:<B_id> -> <B>:<id>

}
png

0 人点赞