Convert Neighbor class to an asymmetrical Graph class

NNtoGraph(nn.object, col.cells = NULL, weighted = FALSE)

Arguments

nn.object

A neighbor class object

col.cells

Cells names of the neighbors, cell names in nn.object is used by default

weighted

Determine if use distance in the Graph

Value

Returns a Graph object