get_edgelist_from_incidmat: Generate edgelist from incidence matrix of a bipartite...

View source: R/ExplodeLayoutBasic.R

get_edgelist_from_incidmatR Documentation

Generate edgelist from incidence matrix of a bipartite network

Description

Generate edgelist from incidence matrix of a bipartite network

Usage

get_edgelist_from_incidmat(incidence_matrix)

Arguments

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.

Value

A dataframe with 3 columns: nodesR, nodesC, values.

Examples

example_edgelist=get_edgelist_from_incidmat(example_incidmat)

ExplodeLayout documentation built on July 1, 2022, 9:06 a.m.