SpiecEasi (version 1.0.2)

adj2igraph: 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