当我将这些行移出 时,节点不会显示在下面
# cluster.py - http://www.graphviz.org/content/cluster
from graphviz import Digraph
g = Digraph('G', filename='cluster.gv')
b = None #------------------------------CREATE NEW GLOBAL
with g.subgraph(name='cluster_0') as c:
b = c #-------------------------------ASSIGN TO GLOBAL
b.attr(style='filled')
b.attr(color='lightgrey') #-----------------MOVE OUTSIDE OF WITH
b.node_attr.update(style='filled', color='white')
b.edges([('a0', 'a1'), ('a1', 'a2'), ('a2', 'a3')])
b.attr(label='process #1')
是否有解决方法?