From 9f23babfe331f4ac8e24b7c236a2c8ef56dbd8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Eraslan?= Date: Thu, 15 Mar 2018 20:37:32 +0100 Subject: [PATCH] Make networkx version check Python3 friendly --- graphsage/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphsage/utils.py b/graphsage/utils.py index 4143d46..ff05072 100644 --- a/graphsage/utils.py +++ b/graphsage/utils.py @@ -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"