list signed triangles
lists all possible signed triangles
signed_triangles(g)
g
: igraph object with a sign edge attribute.matrix of vertex ids and the number of positive ties per triangle
library(igraph) g <- make_full_graph(4) E(g)$sign <- c(-1, 1, 1, -1, -1, 1) signed_triangles(g)
count_signed_triangles
David Schoch
Useful links