mindspore_gl.graph

Graph abstraction and data interface.

mindspore_gl.graph.add_self_loop

ADD the self loop from the input coo matrix.

mindspore_gl.graph.get_laplacian

Get laplacian matrix.

mindspore_gl.graph.norm

graph laplacian normalization

mindspore_gl.graph.remove_self_loop

Remove the diagonal matrix from the input matrix object, you can choose to operate on a dense matrix or a matrix in coo format.

mindspore_gl.graph.BatchHomoGraph

BatchHomoGraph, batch list of MindHomoGraph into a single MindHomoGraph with some batch_meta information.

mindspore_gl.graph.BatchMeta

BatchMeta, meta information for a batched graph.

mindspore_gl.graph.CsrAdj

Build the csr matrix nametuple.

mindspore_gl.graph.MindHomoGraph

Build in-memory homo graph.

mindspore_gl.graph.PadArray2d

PadArray2d, specific pad operator for 2d array.

mindspore_gl.graph.PadDirection

Padding Direction for 2d array specifically.

mindspore_gl.graph.PadHomoGraph

Pad MindHomoGraph, We pad graph by adding additional nodes and edges between these nodes.

mindspore_gl.graph.PadMode

Padding Mode, for graph and 2d array.

mindspore_gl.graph.UnBatchHomoGraph

Return list of MindHomoGraph from a Batched MindHomoGraph.