Merge pull request #30 from gokceneraslan/patch-1
Make networkx version check Python3 friendly
This commit is contained in:
commit
8572d2f5d8
@ -8,7 +8,7 @@ import os
|
|||||||
|
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
from networkx.readwrite import json_graph
|
from networkx.readwrite import json_graph
|
||||||
version_info = map(int, nx.__version__.split('.'))
|
version_info = list(map(int, nx.__version__.split('.')))
|
||||||
major = version_info[0]
|
major = version_info[0]
|
||||||
minor = version_info[1]
|
minor = version_info[1]
|
||||||
assert (major <= 1) and (minor <= 11), "networkx major version > 1.11"
|
assert (major <= 1) and (minor <= 11), "networkx major version > 1.11"
|
||||||
|
Loading…
Reference in New Issue
Block a user