cugraph.Graph.from_pandas_adjacency#
- Graph.from_pandas_adjacency(pdf, vertices=None)[source]#
Initializes the graph from pandas adjacency matrix.
- Parameters:
- pdfpandas.DataFrame
A DataFrame that contains adjacency information
- verticescudf.Series or List, optional (default=None)
A cudf.Series or list containing all vertices of the graph. This is optional, but must be used if the graph contains isolated vertices which cannot be represented in the source and destination arrays. If specified, this array must contain every vertex identifier, including vertex identifiers that are already included in the source and destination arrays.