View source: R/signed_triangles.R
signed_triangles | R Documentation |
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.