signed triad census
triad census for signed graphs
triad_census_signed(g)
g
: igraph object with a sign edge attribute.counts for all 139 signed directed triangle types
library(igraph) g <- make_full_graph(4, directed = TRUE) E(g)$sign <- rep(c(-1, 1, 1, -1, -1, 1), 2) triad_census_signed(g)
David Schoch
Useful links