as_incidence_signed: Convert a signed two-mode network to a signed matrix

View source: R/complex_matrices.R

as_incidence_signedR Documentation

Convert a signed two-mode network to a signed matrix

Description

This function returns the incidence matrix for a signed two-mode network.

Usage

as_incidence_signed(g, sparse = FALSE)

Arguments

g

igraph object (bipartite). Must have a "sign" edge attribute.

sparse

Logical scalar, whether to return the result as a sparse matrix. The Matrix package is required for sparse matrices.

Value

signed incidence matrix


signnet documentation built on Sept. 9, 2023, 1:06 a.m.