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.batch_graph_csr_data

Convert the batched graph in the COO format to the CSR format.

mindspore_gl.graph.get_laplacian

Get laplacian matrix.

mindspore_gl.graph.graph_csr_data

Convert the entire graph in the COO format to the CSR format.

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 homo graph.

mindspore_gl.graph.PadArray2d

PadArray2d, specific pad operator for 2D array.

mindspore_gl.graph.PadCsrEdge

PadCsrEdge, specific pad operator for coo edges.

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.

mindspore_gl.graph.sampling_csr_data

Convert the sampling graph in the COO format to the CSR format.