signed_triangles function

list signed triangles

list signed triangles

lists all possible signed triangles

signed_triangles(g)

Arguments

  • g: igraph object with a sign edge attribute.

Returns

matrix of vertex ids and the number of positive ties per triangle

Examples

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

See Also

count_signed_triangles

Author(s)

David Schoch