Merge pull request #30 from gokceneraslan/patch-1

Make networkx version check Python3 friendly
This commit is contained in:
William L Hamilton 2018-06-04 18:59:32 -07:00 committed by GitHub
commit 8572d2f5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import os
import networkx as nx
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]
minor = version_info[1]
assert (major <= 1) and (minor <= 11), "networkx major version > 1.11"