Learn R Programming

ghypernet (version 1.1.2)

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

Description

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

Usage

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

Value

list of igraph graphs.

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?

Examples

Run this code
data('adj_karate')
adj_list <- list(adj_karate)
glist <- CreateIgGraphs(adj_list, FALSE, FALSE)

Run the code above in your browser using DataLab