Learn R Programming

signnet (version 0.6.0)

as_complex_edges: 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 positve ("P"), negative ("N") and ambivalent ("A") ties.

Value

igraph object

Examples

Run this code
# NOT RUN {
g <- sample_islands_signed(2,10,1,10)
as_complex_edges(g)
# }

Run the code above in your browser using DataLab