R/complex_matrices.R

as_adj_signed.Rd

This function returns the adjacency matrix for a signed graph

as_adj_signed(g, sparse = FALSE)

igraph object. Must have a "sign" edge attribute.

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

signed adjacency matrix

as_adj_complex