Skip to content
Permalink
Browse files

update README.md for NetworkX 2.x

  • Loading branch information...
takemaru committed Jun 28, 2018
1 parent 9aff65f commit 300fb9743199cffb1c732b143fee85ca18f3089f
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
@@ -786,8 +786,14 @@ object, and the other is vice versa. We show an example for NetworkX.
```python
>>> import networkx as nx
>>> # for NetworkX version 1.x
...
>>> GraphSet.converters['to_graph'] = nx.Graph
>>> GraphSet.converters['to_edges'] = nx.Graph.edges
>>> # for NetworkX version 2.x
...
>>> GraphSet.converters['to_graph'] = nx.from_edgelist
>>> GraphSet.converters['to_edges'] = nx.to_edgelist
```
We can now pass NetworkX's graph objects to Graphillion like this.

0 comments on commit 300fb97

Please sign in to comment.
You can’t perform that action at this time.