View source: R/signed_triangles.R
count_signed_triangles | R Documentation |
Counts the number of all possible signed triangles (+++),(++-), (+–) and (—)
count_signed_triangles(g)
g |
igraph object with a sign edge attribute. |
counts for all 4 signed triangle types
David Schoch
signed_triangles
library(igraph)
g <- make_full_graph(4)
E(g)$sign <- c(-1, 1, 1, -1, -1, 1)
count_signed_triangles(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.