Learn R Programming

signnet (version 1.0.5)

signed_triangles: list signed triangles

Description

lists all possible signed triangles

Usage

signed_triangles(g)

Value

matrix of vertex ids and the number of positive ties per triangle

Arguments

g

igraph object with a sign edge attribute.

Author

David Schoch

See Also

count_signed_triangles

Examples

Run this code
library(igraph)
g <- make_full_graph(4)
E(g)$sign <- c(-1, 1, 1, -1, -1, 1)
signed_triangles(g)

Run the code above in your browser using DataLab