用法:
class cugraph.Graph(m_graph=None, directed=False)
GPU 图形对象(其他图形类型的基类)
- m_graph:cuGraph.MultiGraph 对象或无(默认=无)
从 cugraph.MultiGraph 对象初始化图形
- directed:布尔值,可选(默认=假)
表示图形是有向的。
参数:
例子:
>>> # undirected graph >>> G = cugraph.Graph() >>> # directed graph >>> G = cugraph.Graph(directed=True)
相关用法
- Python cugraph.Graph.from_cudf_adjlist用法及代码示例
- Python cugraph.Graph.from_cudf_edgelist用法及代码示例
- Python cugraph.Graph.to_directed用法及代码示例
- Python cugraph.Graph.to_undirected用法及代码示例
- Python cugraph.Graph.from_pandas_edgelist用法及代码示例
- Python cugraph.community.spectral_clustering.spectralBalancedCutClustering用法及代码示例
- Python cugraph.link_prediction.jaccard.jaccard用法及代码示例
- Python cugraph.link_prediction.wjaccard.jaccard_w用法及代码示例
- Python cugraph.community.ecg.ecg用法及代码示例
- Python cugraph.community.louvain.louvain用法及代码示例
- Python cugraph.tree.minimum_spanning_tree.maximum_spanning_tree用法及代码示例
- Python cugraph.centrality.betweenness_centrality.betweenness_centrality用法及代码示例
- Python cugraph.link_analysis.pagerank.pagerank用法及代码示例
- Python cugraph.dask.community.louvain.louvain用法及代码示例
- Python cugraph.traversal.bfs.bfs用法及代码示例
- Python cugraph.community.egonet.batched_ego_graphs用法及代码示例
- Python cugraph.tree.minimum_spanning_tree.minimum_spanning_tree用法及代码示例
- Python cugraph.centrality.betweenness_centrality.edge_betweenness_centrality用法及代码示例
- Python cugraph.link_prediction.woverlap.overlap_w用法及代码示例
- Python cugraph.link_prediction.overlap.overlap用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 cugraph.Graph。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。