get_edgelist_from_incidmat {ExplodeLayout}R 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)

[Package ExplodeLayout version 0.1.2 Index]