powered by
lists all possible signed triangles
signed_triangles(g)
matrix of vertex ids and the number of positive ties per triangle
igraph object with a sign edge attribute.
David Schoch
count_signed_triangles
library(igraph) g <- make_full_graph(4) E(g)$sign <- c(-1, 1, 1, -1, -1, 1) signed_triangles(g)
Run the code above in your browser using DataLab