nx.from_numpy_matrix(adjacencyMatrix) is faster