Counts the number of all possible signed triangles (+++),(++-), (+–) and (—)
Examples
library(igraph)
g <- graph.full(4)
E(g)$type <- c("P", "N", "A", "A", "P", "N")
count_complex_triangles(g, attr = "type")
#> PPP PPN PNN NNN PPA PNA NNA PAA NAA AAA
#> 0 0 0 0 1 2 1 0 0 0