adj2igraph: Adjacency to igraph

Description Usage Arguments

View source: R/plotNet.R

Description

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

Usage

1
2
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. 1, 2018, 2:12 p.m.