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 is missing.
m
a communities object. See communities in the igraph
package.
fuzzy
logical.
threshold
threshold on the probabilities if fuzzy is true. If not given,
it defaults to the inverse of the number of communities.
…
arguments passed to cluster_spectral if g is given and
m is given.
Value
a hypergraph.
Details
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.