CreateIgGraphs: Convert a list of adjacency matrices to a list of igraph...

Description Usage Arguments Value Examples

View source: R/igraphintegration.R

Description

Convert a list of adjacency matrices to a list of igraph graphs.

Usage

1
CreateIgGraphs(adjlist, directed, selfloops, weighted = NULL)

Arguments

adjlist

a list of adjacency matrices

directed

a boolean argument specifying whether object is directed or not.

selfloops

a boolean argument specifying whether the model should incorporate selfloops.

weighted

boolean, generate weighted graphs?

Value

list of igraph graphs.

Examples

1
2
3
data('adj_karate')
adj_list <- list(adj_karate)
glist <- CreateIgGraphs(adj_list, FALSE, FALSE)

ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.