From 7995e8dd2a67fbff70ee34e5c1cb6a94dff90a1d Mon Sep 17 00:00:00 2001 From: afender Date: Thu, 10 Jan 2019 10:01:37 -0600 Subject: [PATCH] Fixed the size of the pagerank array in Pagerank bindings --- python/pagerank/pagerank_wrapper.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pagerank/pagerank_wrapper.pyx b/python/pagerank/pagerank_wrapper.pyx index 11ca64a4aaa..7aefa127827 100644 --- a/python/pagerank/pagerank_wrapper.pyx +++ b/python/pagerank/pagerank_wrapper.pyx @@ -191,7 +191,7 @@ cpdef pagerank(G,alpha=0.85, max_iter=100, tol=1.0e-5): cdef gdf_graph* g = graph size = g.transposedAdjList.offsets.size - pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size,dtype=np.float64)) + pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size-1,dtype=np.float64)) cdef uintptr_t pagerank_ptr = create_column(pagerank) gdf_pagerank(graph, pagerank_ptr, alpha, tol, max_iter, 0)