c_net_compare: Compare Two Networks

View source: R/8.net_compare.R

c_net_compareR Documentation

Compare Two Networks

Description

Compare Two Networks

Usage

c_net_compare(g1, g2)

Arguments

g1

network1

g2

network2

Value

A list containing the following elements:

  • g1: The first network.

  • g2: The second network.

  • g_union: The union of the two networks.

  • g_inter: The intersection of the two networks.

  • net_par_df: A data frame containing the network parameters.

  • net_similarity: A list containing the similarity metrics.

Examples

data("c_net")
set.seed(12)
co_net_p1 <- c_net_filter(co_net, name %in% sample(V(co_net)$name, 300))
co_net_p2 <- c_net_filter(co_net, name %in% sample(V(co_net)$name, 300))
c_net_compare(co_net_p1, co_net_p2) -> c_net_comp
plot(c_net_comp)

MetaNet documentation built on June 26, 2025, 5:07 p.m.