as_complex_edges: Convert Signed Network to Complex

View source: R/complex_matrices.R

as_complex_edgesR Documentation

Convert Signed Network to Complex

Description

Convert Signed Network to Complex

Usage

as_complex_edges(g, attr = "type")

Arguments

g

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

attr

new edge attribute name that encodes positive ("P"), negative ("N") and ambivalent ("A") ties.

Value

igraph object

Author(s)

David Schoch

Examples

g <- sample_islands_signed(2,10,1,10)
as_complex_edges(g)

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