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

convert2igraph

Convert Network(s) to igraph's Format


Description

Converts single or multiple networks into igraph's format for network analysis

Usage

convert2igraph(A, neural = FALSE)

Arguments

A

Adjacency matrix (network matrix) or brain connectivity array (from convertConnBrainMat)

neural

Is input a brain connectivity array (i.e., m x m x n)? Defaults to FALSE. Set to TRUE to convert each brain connectivity matrix

Value

Returns a network matrix in igraph's format or returns a list of brain connectivity matrices each of which have been convert to igraph's format

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A

igraphNetwork <- convert2igraph(A)

## Not run:  
neuralarray <- convertConnBrainMat()

igraphNeuralList <- convert2igraph(neuralarray, neural = TRUE)

## End(Not run)

NetworkToolbox

Methods and Measures for Brain, Cognitive, and Psychometric Network Analysis

v1.4.1
GPL (>= 3.0)
Authors
Alexander Christensen [aut, cre] (<https://orcid.org/0000-0002-9798-7037>), Guido Previde Massara [ctb] (<https://orcid.org/0000-0003-0502-2789>)
Initial release
2020-12-07

We don't support your browser anymore

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