mindspore_gl.graph

图抽象和数据接口。

接口名

概述

支持平台

mindspore_gl.graph.add_self_loop

从输入coo矩阵中添加自循环。

Ascend GPU

mindspore_gl.graph.get_laplacian

获得laplacian矩阵。

Ascend GPU

mindspore_gl.graph.norm

图laplacian归一化。

Ascend GPU

mindspore_gl.graph.remove_self_loop

从输入矩阵对象中删除对角矩阵,可以选择对dense矩阵或coo格式的矩阵进行操作。

Ascend GPU

mindspore_gl.graph.BatchHomoGraph

BatchHomoGraph,将一个MindHomoGraph列表和batch_meta信息的打包放进一个MindHomoGraph中。

Ascend GPU

mindspore_gl.graph.BatchMeta

BatchMeta,批处理图形的元信息。

Ascend GPU

mindspore_gl.graph.CsrAdj

构建csr矩阵的nametuple。

Ascend GPU

mindspore_gl.graph.MindHomoGraph

构建同构图。

Ascend GPU

mindspore_gl.graph.PadArray2d

PadArray2d。

Ascend GPU

mindspore_gl.graph.PadDirection

特定的二维数组的填充方向。

Ascend GPU

mindspore_gl.graph.PadHomoGraph

Pad MindHomoGraph,通过在这些节点之间添加额外的节点和边来填充图形。

Ascend GPU

mindspore_gl.graph.PadMode

填充模式,用于图和二维数组。

Ascend GPU

mindspore_gl.graph.UnBatchHomoGraph

从打包成batch的MindHomoGraph返回MindHomoGraph的列表。

Ascend GPU