Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

adjacencyMatrix2List

Convert adjacency matrix to an adjacency list


Description

Convert adjacency matrix to an adjacency list

Usage

adjacencyMatrix2List(mat, keep.zero = FALSE)

Arguments

mat

A numeric matrix.

keep.zero

Whether to keep the interactions with value zero.

Examples

set.seed(999)
mat = matrix(sample(18, 18), 3, 6) 
rownames(mat) = paste0("S", 1:3)
colnames(mat) = paste0("E", 1:6)
adjacencyMatrix2List(mat)

circlize

Circular Visualization

v0.4.12
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2021-1-8

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.