📜  rapids - 将 nerworkx 转换为 cugraph - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.903000             🧑  作者: Mango

代码示例1
M = cudf.read_csv('datasets/karate.csv', delimiter=' ',
                   dtype=['int32', 'int32', 'float32'], header=None)

G = cugraph.Graph()
G = cugraph.from_cudf_edgelist(M, source='0', target='1', weight='2')