cugraph.from_numpy_array#

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

Initializes the graph from numpy array containing adjacency matrix.

Parameters:
Anumpy.array

A Numpy array 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.