diff options
| author | thegreathippo <thegreathippo@gmail.com> | 2016-04-26 21:05:11 -0400 |
|---|---|---|
| committer | thegreathippo <thegreathippo@gmail.com> | 2016-04-26 21:05:11 -0400 |
| commit | 4dedb87338643b9344c89dbff9e3b71932fc2c0f (patch) | |
| tree | d393b84c8442a7e65efa3a8f6ae6baada209d854 /examples/graph | |
| parent | 1675a824d6cdb17c3144ef46ff52a0c2b53a11d1 (diff) | |
| download | networkx-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.py | 2 |
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) |
