Networkx 2.0 changed the behavior of graph.nodes() to produce a NodeView (#328)
Networkx 2.0 changed the behavior of graph.nodes() to produce a NodeView (#328)

(which cannot be numerically indexed) instead of a list. See, e.g.
https://networkx.github.io/documentation/networkx-1.10/_modules/networkx/classes/graph.html
https://networkx.github.io/documentation/networkx-2.0/_modules/networkx/classes/graph.html

It's a bummer.

The simplest fix is to require a pre-2.0 version of networkx, which is
all this patch does.
jmschrei/pomegranate,jmschrei/pomegranate