avatar

Catalog
DOT语言的基础使用

python3 graphviz的使用

声明graph
格式如下:
[ strict ] (graph | digraph) [ ID ] ‘{‘ stmt_list ‘}’
使用digraph 图形名可以声明一个有向图,使用graph 图形名可以声明一个无向图。

digraph g{
a->b
}

python
1
dot = Digraph()
Author: Jacob
Link: http://yoursite.com/2020/01/31/DOT%E8%AF%AD%E8%A8%80%E7%9A%84%E5%9F%BA%E7%A1%80%E4%BD%BF%E7%94%A8/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付寶
    支付寶