python draw multigraph

后端 未结 1 956
梦毁少年i
梦毁少年i 2021-01-25 17:24

I try to draw multigraph in Python using graphviz.

For now I can draw usual graphs in Python somehow like:

import pygraphviz as pgv
G=pgv.AGraph()
G.add         


        
1条回答
  •  有刺的猬
    2021-01-25 18:18

    As the documentation you quoted says, you need to specify strict=False when creating a multi-edge graph. Since you didn't do this your graph doesn't support parallel edges.

    0 讨论(0)
提交回复
热议问题