Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/hypergraph_from_incidence_matrix.R
Construct a hypergraph from a collection of hyper-edges.
1 2 3 4 5 | hypergraph_from_incidence_matrix(incidence_matrix)
hypergraph_from_edgelist(x,v)
hypergraph_from_membership(x)
hypergraph_from_fuzzy_clustering(z,threshold)
hypergraph_from_spectral_clustering(g,m,fuzzy=FALSE,threshold,...)
|
incidence_matrix |
an sxn binary matrix corresponding to the s hyper-edges on n vertices. |
x |
a list of hyper-edges, or a vector corresponding to which hyper-edge each node is in. |
z |
a matrix of probabilities that is nxc where c is the number of clusters. |
v |
optional vector of node names. |
g |
a graph. Only used if |
m |
a communities object. See communities in the |
fuzzy |
logical. |
threshold |
threshold on the probabilities if |
... |
arguments passed to |
An edgelist is a list of hyper-edges. An incidence matrix is a binary
matrix that is hsize(g)
xhorder(h)
. A membership vector
is the vector of node membership returned from a community detection
or clustering algorithm. A hypergraph constructed from a membership
vector has a disconnected component for each hyper-edge.
a hypergraph.
David J. Marchette dmarchette@gmail.com
cluster_spectral
,
communities
.
1 | h <- hypergraph_from_edgelist(list(1:4,3:6))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.