cugraph.from_numpy_matrix#

cugraph.from_numpy_matrix(A, create_using=<class 'cugraph.structure.graph_classes.Graph'>)[source]#

Initializes the graph from numpy matrix containing adjacency matrix.

Parameters:
Anumpy.matrix

A Numpy matrix that contains adjacency information

create_using: cugraph.Graph (instance or class), optional (default=Graph)

Specify the type of Graph to create. Can pass in an instance to create a Graph instance with specified ‘directed’ attribute.