count_signed_triangles function

count signed triangles

count signed triangles

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

count_signed_triangles(g)

Arguments

  • g: igraph object with a sign edge attribute.

Returns

counts for all 4 signed triangle types

Examples

library(igraph) g <- make_full_graph(4) E(g)$sign <- c(-1, 1, 1, -1, -1, 1) count_signed_triangles(g)

See Also

signed_triangles

Author(s)

David Schoch