signed_triangles: list signed triangles

View source: R/signed_triangles.R

signed_trianglesR Documentation

list signed triangles

Description

lists all possible signed triangles

Usage

signed_triangles(g)

Arguments

g

igraph object with a sign edge attribute.

Value

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

Author(s)

David Schoch

See Also

count_signed_triangles

Examples

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

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