View source: R/8.net_compare.R
| c_net_compare | R Documentation |
Compare Two Networks
c_net_compare(g1, g2)
g1 |
network1 |
g2 |
network2 |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.