count_signed_triangles: count signed triangles

View source: R/signed_triangles.R

count_signed_trianglesR Documentation

count signed triangles

Description

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

Usage

count_signed_triangles(g)

Arguments

g

igraph object with a sign edge attribute.

Value

counts for all 4 signed triangle types

Author(s)

David Schoch

See Also

signed_triangles

Examples

library(igraph)
g <- graph.full(4)
E(g)$sign <- c(-1, 1, 1, -1, -1, 1)
count_signed_triangles(g)

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