cugraph.Graph.from_numpy_matrix#

Graph.from_numpy_matrix(np_matrix)[source]#

Initializes the graph from numpy matrix containing adjacency matrix.

Parameters:
np_matrixnumpy.matrix

A Numpy matrix that contains adjacency information