summaryrefslogtreecommitdiff
path: root/networkx/readwrite/tests/test_graphml.py
diff options
context:
space:
mode:
authorthegreathippo <thegreathippo@gmail.com>2016-04-26 20:06:03 -0400
committerthegreathippo <thegreathippo@gmail.com>2016-04-26 20:06:03 -0400
commit1675a824d6cdb17c3144ef46ff52a0c2b53a11d1 (patch)
treec6e53b1c75fa5e3f09183e194f3233953e2e139a /networkx/readwrite/tests/test_graphml.py
parent64902cb38713787585344cee5d9e5d89e51e2aeb (diff)
downloadnetworkx-1675a824d6cdb17c3144ef46ff52a0c2b53a11d1.tar.gz
Modified all add_node, add_edge, and add_edges_from methods.
I also went through and modified all attr_dict references to either directly assign keywords to node/edge attributes, or use the ** syntax to unpack the dictionaries. The only case of these I couldn't do is networkx.convert.py -- largely because I don't understand how multigraph edges work.
Diffstat (limited to 'networkx/readwrite/tests/test_graphml.py')
-rw-r--r--networkx/readwrite/tests/test_graphml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/readwrite/tests/test_graphml.py b/networkx/readwrite/tests/test_graphml.py
index aa7243db..08c2f32e 100644
--- a/networkx/readwrite/tests/test_graphml.py
+++ b/networkx/readwrite/tests/test_graphml.py
@@ -452,7 +452,7 @@ xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdr
name1 = unichr(2344) + unichr(123) + unichr(6543)
name2 = unichr(5543) + unichr(1543) + unichr(324)
node_type=unicode
- G.add_edge(name1, 'Radiohead', attr_dict={'foo': name2})
+ G.add_edge(name1, 'Radiohead', foo=name2)
fd, fname = tempfile.mkstemp()
nx.write_graphml(G, fname)
H = nx.read_graphml(fname,node_type=node_type)