summaryrefslogtreecommitdiff
path: root/examples/graph
diff options
context:
space:
mode:
authorthegreathippo <thegreathippo@gmail.com>2016-04-26 21:05:11 -0400
committerthegreathippo <thegreathippo@gmail.com>2016-04-26 21:05:11 -0400
commit4dedb87338643b9344c89dbff9e3b71932fc2c0f (patch)
treed393b84c8442a7e65efa3a8f6ae6baada209d854 /examples/graph
parent1675a824d6cdb17c3144ef46ff52a0c2b53a11d1 (diff)
downloadnetworkx-4dedb87338643b9344c89dbff9e3b71932fc2c0f.tar.gz
Change calls to add_edge method to pass values as keywords rather than a dict
I missed a few of these in my last pass, largely because they didn't invoke attr_dict directly -- but rather, passed a dictionary object (enclosed in {}).
Diffstat (limited to 'examples/graph')
-rw-r--r--examples/graph/napoleon_russian_campaign.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/graph/napoleon_russian_campaign.py b/examples/graph/napoleon_russian_campaign.py
index bdc8e918..b7a354dc 100644
--- a/examples/graph/napoleon_russian_campaign.py
+++ b/examples/graph/napoleon_russian_campaign.py
@@ -113,7 +113,7 @@ def minard_graph():
if last is None:
last=i
else:
- G.add_edge(i,last,{r:int(n)})
+ G.add_edge(i,last,**{r:int(n)})
last=i
i=i+1
g.append(G)