powered by
Generates a symmetric adjacency matrix encoding a bipartite graph.
Square(x)
A symmetric adjacency matrix encoding a bipartite graph.
matrix encoding the edges between two types of nodes (rows and columns).
# 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)
Run the code above in your browser using DataLab