shuffle_hype | R Documentation |
A hypergraph can be shuffled to slightly perturb its structure. These shuffled hypergraphs can then be used to estimate the uncertainty of calculations on the original hypergraph.
shuffle_hype(hype, n = 1, method = "hyperedge")
hype |
A hypergraph object. |
n |
The number of shuffled hypergraphs to calculate. |
method |
The method to use to shuffle the hypergraph. |
Two methods are used to shuffle a hypergraph, the "vertex"
method keeps the
degree of each vertex the same, randomly reassigning the hyperedges they are
members of. The "hyperedge"
method keeps the cardinality of each hyperedge
the same, randomly reassigning the vertices that are members.
A list of shuffled hypergraphs.
hype <- example_hype() resamples <- shuffle_hype(hype, n = 5) lapply(resamples, incidence_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.