Square | R Documentation |
Generates a symmetric adjacency matrix encoding a bipartite graph.
Square(x)
x |
matrix encoding the edges between two types of nodes (rows and columns). |
A symmetric adjacency matrix encoding a bipartite graph.
# Simulated links between two sets
set.seed(1)
mat <- matrix(sample(c(0, 1), size = 15, replace = TRUE),
nrow = 5, ncol = 3
)
# Adjacency matrix of a bipartite graph
Square(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.