edgelist: Convert an object to a list of edges

edgelistR Documentation

Convert an object to a list of edges

Description

This is a S3 generic to convert a suitable object represetning (on some way) a graph to an edgelist which can be inported to igraph by the function graph_from_edgelist.

Usage

as.edgelist(x, ...)

Arguments

x

The R object to convert to an edgelist

...

further arguments passed to or from other methods.

Examples

library(micInt)
library(igraph)
sim.scores <- similarity_measures(subset= c("spearman","pearson"))
res <- runAnalysis(OTU_table = seawater,iterations = 100,sim.scores = sim.scores,parallel = FALSE)
int_table <- res$similarity_measures_significance$spearman
edgelist <- as.edgelist(int_table)
graph_from_edgelist(edgelist)

AlmaasLab/micInt documentation built on April 1, 2022, 10:37 a.m.