@@ -35,15 +35,15 @@ def __iter__(self, subgraph=False):
35
35
for kw in ("graph" , "node" , "edge" ):
36
36
attrs = getattr (self , "%s_attr" % kw )
37
37
if attrs :
38
- yield self ._attr (kw , self ._attr_list (None , attrs ))
38
+ yield self ._attr (kw , self ._attr_list (None , kwargs = attrs ))
39
39
40
40
yield from self .body
41
41
42
42
for name , attrs in sorted (self ._nodes .items ()):
43
43
name = self ._quote (name )
44
44
label = attrs .pop ("label" , None )
45
45
_attributes = attrs .pop ("_attributes" , None )
46
- attr_list = self ._attr_list (label , attrs , _attributes )
46
+ attr_list = self ._attr_list (label , kwargs = attrs , attributes = _attributes )
47
47
yield self ._node (name , attr_list )
48
48
49
49
for edge , attrs in sorted (self ._edges .items ()):
@@ -52,7 +52,7 @@ def __iter__(self, subgraph=False):
52
52
head_name = self ._quote_edge (head_name )
53
53
label = attrs .pop ("label" , None )
54
54
_attributes = attrs .pop ("_attributes" , None )
55
- attr_list = self ._attr_list (label , attrs , _attributes )
55
+ attr_list = self ._attr_list (label , kwargs = attrs , attributes = _attributes )
56
56
yield self ._edge (tail = tail_name , head = head_name , attr = attr_list )
57
57
58
58
yield self ._tail
0 commit comments