cugraph.to_pandas_edgelist#

cugraph.to_pandas_edgelist(G, source='src', destination='dst')[source]#

Returns the graph edge list as a Pandas DataFrame.

Parameters:
Gcugraph.Graph

Graph containing the edgelist.

sourcestr or array-like, optional (default=’source’)

source column name or array of column names

destinationstr or array-like, optional (default=’destination’)

destination column name or array of column names

Returns:
dfpandas.DataFrame

pandas dataframe containing the edgelist as source and destination columns.