diff options
| author | Michael E. Rose <Michael.Ernst.Rose@gmail.com> | 2017-07-26 23:59:56 +0200 |
|---|---|---|
| committer | Dan Schult <dschult@colgate.edu> | 2017-07-26 17:59:56 -0400 |
| commit | fbc901aa2d30c8dfbe145af747097e92d9b5e5c9 (patch) | |
| tree | f56cd26c1ab505793b804462fc957ebbf0cb0e9e /networkx/algorithms/bipartite/basic.py | |
| parent | 9db1ab2629d14667caae88f1dfdb4247f252f09c (diff) | |
| download | networkx-fbc901aa2d30c8dfbe145af747097e92d9b5e5c9.tar.gz | |
Refactor set_node_attributes() and set_edge_attributes() (#2553)
* make set_node_attriutes() work with any kind of container
* switch arguments in docstring and adapt comments
* Make set_edge_attributes() with any kind of container
* Update release notes with #2553 set/get_node/edge_attributes
* Update package codebase with API change for set_*_attributes
Fixes #2343
Diffstat (limited to 'networkx/algorithms/bipartite/basic.py')
| -rw-r--r-- | networkx/algorithms/bipartite/basic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/bipartite/basic.py b/networkx/algorithms/bipartite/basic.py index c2f39c6d..d2b3edf0 100644 --- a/networkx/algorithms/bipartite/basic.py +++ b/networkx/algorithms/bipartite/basic.py @@ -49,7 +49,7 @@ def color(G): You can use this to set a node attribute indicating the biparite set: - >>> nx.set_node_attributes(G, 'bipartite', c) + >>> nx.set_node_attributes(G, c, 'bipartite') >>> print(G.node[0]['bipartite']) 1 >>> print(G.node[1]['bipartite']) |
