adj2igraph: Adjacency to igraph

View source: R/plotNet.R

adj2igraphR Documentation

Adjacency to igraph

Description

Convert an adjacency matrix (ie - from the sparseiCov function) to an igraph object

Usage

adj2igraph(
  Adj,
  rmEmptyNodes = FALSE,
  diag = FALSE,
  edge.attr = list(),
  vertex.attr = list(name = 1:ncol(Adj))
)

Arguments

Adj

an Adjacency matrix

rmEmptyNodes

should unconnected nodes be removed from the graph

diag

Flag to include self-loops (diagonal of adjacency matrix)

edge.attr

named list of attributes for graph edges

vertex.attr

named list of attributes for graph vertices


zdk123/SpiecEasi documentation built on Oct. 20, 2023, 6:49 a.m.