Learn R Programming

signnet (version 0.6.0)

count_signed_triangles: count signed triangles

Description

Counts the number of all possible signed triangles (+++),(++-), (+--) and (---)

Usage

count_signed_triangles(g)

Arguments

g

igraph object with signed edge attribute

Value

counts for all 4 signed triangle types

See Also

signed_triangles

Examples

Run this code
# NOT RUN {
library(igraph)
g <- graph.full(4)
E(g)$sign <- c(-1,1,1,-1,-1,1)
count_signed_triangles(g)
# }

Run the code above in your browser using DataLab