Description Usage Arguments Details Value Author(s) Examples
View source: R/incidence_matrix.R
Converts a graph to an incidence matrix. Not the bipartite version.
1 2 |
g |
a graph or hypergraph. |
h |
a hypergraph. |
An incidence matrix has gorder(g)
columns and gsize(g)
rows. incidence_matrix
can be called on either a graph or a
hypergraph. It calls hypergraph_as_incidence_matrix
in the
latter case.
A sparse incidence matrix.
David J. Marchette dmarchette@gmail.com
1 2 3 4 | set.seed(2343)
g <- sample_gnp(10,.1)
h <- hypergraph_from_edgelist(list(1:3,3:4,c(3,5,7)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.