NN2M: Define a function convert nn list to adjacency matrix that...

NN2MR Documentation

Define a function convert nn list to adjacency matrix that can be further used for igraph

Description

Define a function convert nn list to adjacency matrix that can be further used for igraph

Usage

NN2M(nn)

Arguments

nn

nn list, which has two components: nn$idx and nn$dist

Value

return an nn.matrix. This is adjacency matrix can be input to igraph graph<-graph_from_adjacency_matrix(nn.matrix,diag = F,mode = "undirected")


chenweng1991/scMitoTracing documentation built on July 2, 2024, 8:41 p.m.