diff options
| author | Michael Johnson <johnsomor@gmail.com> | 2019-10-18 18:02:58 -0700 |
|---|---|---|
| committer | Michael Johnson <johnsomor@gmail.com> | 2019-10-18 18:11:44 -0700 |
| commit | dc6495cfa1c8e1dc95bad554a55f0b4e8e360abe (patch) | |
| tree | c198a067723a292c9ed9991a317d14d2278911d9 /taskflow/patterns/unordered_flow.py | |
| parent | 9422017336af97c799c611930ddb9dfd0fb0e47b (diff) | |
| download | taskflow-dc6495cfa1c8e1dc95bad554a55f0b4e8e360abe.tar.gz | |
Update TaskFlow for networkx 2.x
The networkx 2.x series has been out for two years now and supports
python 3.6 and greater[1]. This patch updates TaskFlow to require
a minimum of networkx 2.1. It also updates the code to support
recent deprecation expiration introduced in the 2.4 release.
[1] https://networkx.github.io/documentation/stable/news.html
Change-Id: Ife31d353ba80824ebc63c8b21ee90943badc8da3
Diffstat (limited to 'taskflow/patterns/unordered_flow.py')
| -rw-r--r-- | taskflow/patterns/unordered_flow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/patterns/unordered_flow.py b/taskflow/patterns/unordered_flow.py index 3de005c..58fb5c0 100644 --- a/taskflow/patterns/unordered_flow.py +++ b/taskflow/patterns/unordered_flow.py @@ -44,11 +44,11 @@ class Flow(flow.Flow): yield item def iter_links(self): - for (u, v, e_data) in self._graph.edges_iter(data=True): + for (u, v, e_data) in self._graph.edges(data=True): yield (u, v, e_data) def iter_nodes(self): - for n, n_data in self._graph.nodes_iter(data=True): + for n, n_data in self._graph.nodes(data=True): yield (n, n_data) @property |
