diff --git a/docs/source/index.rst b/docs/source/index.rst index 90054666..3e877bce 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -66,6 +66,14 @@ flow of data. Typically people rely on tools like ``itertools.tee``, and However this quickly become cumbersome, especially when building complex pipelines. +Installation +------------ + +To install either use: + +- conda-forge: ``conda install streamz -c conda-forge`` +- pip: ``pip install streamz`` +- dev: ``git clone https://github.com/python-streamz/streamz`` followed by ``pip install -e streamz/`` Related Work ------------ diff --git a/streamz/graph.py b/streamz/graph.py index ac9ec604..f3170b3b 100644 --- a/streamz/graph.py +++ b/streamz/graph.py @@ -114,7 +114,7 @@ def readable_graph(graph): """ import networkx as nx - mapping = {k: "{}".format(graph.node[k]["label"]) for k in graph} + mapping = {k: "{}".format(graph.nodes[k]["label"]) for k in graph} idx_mapping = {} for k, v in mapping.items(): if v in idx_mapping.keys(): @@ -132,7 +132,7 @@ def to_graphviz(graph, **graph_attr): import graphviz gvz = graphviz.Digraph(graph_attr=graph_attr) - for node, attrs in graph.node.items(): + for node, attrs in graph.nodes.items(): gvz.node(node, **attrs) for edge, attrs in graph.edges().items(): gvz.edge(edge[0], edge[1], **attrs)