View source: R/vertex_partition.R
generate_sigma_algebra | R Documentation |
Sigma-Algebra generated by a Partition
generate_sigma_algebra(x)
x |
Input partition stored as a |
Sigma-algebra
g <- igraph::make_ring(7)
m <- as.integer(c(1, 2, 1, 3, 4, 4, 3))
p <- as_vertex_partition(m)
sa <- generate_sigma_algebra(p)
all_full <- purrr::modify_depth(sa, 2, ~ subgraph_full (g, .x))
all_intra <- purrr::modify_depth(sa, 2, ~ subgraph_intra(g, .x))
all_inter <- purrr::modify_depth(sa, 2, ~ subgraph_inter(g, .x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.