as_adj_signed: Convert a signed graph to a signed adjacency matrix

View source: R/complex_matrices.R

as_adj_signedR Documentation

Convert a signed graph to a signed adjacency matrix

Description

This function returns the adjacency matrix for a signed graph

Usage

as_adj_signed(g, sparse = FALSE)

Arguments

g

igraph object. 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 adjacency matrix

See Also

as_adj_complex


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