View source: R/ExplodeLayoutBasic.R
get_edgelist_from_incidmat | R Documentation |
Generate edgelist from incidence matrix of a bipartite network
get_edgelist_from_incidmat(incidence_matrix)
incidence_matrix |
A matrix where row names and column names are the node ID of a bipartite network. An element of the i-th row and j-th column of the matrix is 0 if node on row i is not connected to node on column j, and edge weight if they are connected. |
A dataframe with 3 columns: nodesR, nodesC, values.
example_edgelist=get_edgelist_from_incidmat(example_incidmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.