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