count_complex_triangles: count complex triangles

View source: R/signed_triangles.R

count_complex_trianglesR Documentation

count complex triangles

Description

Counts the number of all possible signed triangles (+++),(++-), (+–) and (—)

Usage

count_complex_triangles(g, attr)

Arguments

g

igraph object.

attr

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

Value

counts for all complex triangle types

Author(s)

David Schoch

See Also

signed_triangles

Examples

library(igraph)
g <- graph.full(4)
E(g)$type <- c("P", "N", "A", "A", "P", "N")
count_complex_triangles(g, attr = "type")

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