cor_between_graphs: Estimate similarity between graphs using correlation

Description Usage Arguments Examples

View source: R/measurment_functions_GRAPH.R

Description

This function will calculate pearson's correlation between two graphs.

Usage

1
cor_between_graphs(graph1, graph2, directed = FALSE, considerZeros = TRUE)

Arguments

graph1

first graph (igraph)

graph2

second graph (igraph)

directed

Whether the graph is directed or not (default = FALSE)

considerZeros

Whether to treat edges present in one graph, but not the other, as zero (TRUE), or consider only those edges present in both graphs (FALSE).

Examples

1
2
3
4
5
#two random graphs
library(igraph)
graph1 <-erdos.renyi.game(n=10,p=0.1)
graph2 <-erdos.renyi.game(n=10,p=0.1)
cor_between_graphs(graph1,graph2)

tbonne/netTS documentation built on July 26, 2021, 2:27 a.m.