complex_walks: Count Walks in complex signed network

View source: R/complex_matrices.R

complex_walksR Documentation

Count Walks in complex signed network

Description

Count Walks in complex signed network

Usage

complex_walks(g, attr, k)

Arguments

g

igraph object.

attr

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

k

integer. length of walks

Value

igraph object

Author(s)

David Schoch

Examples

g <- sample_islands_signed(2,10,1,10)
g <- as_complex_edges(g,attr="type")
complex_walks(g,attr="type",k = 3)

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