Learn R Programming

migraph (version 0.9.3)

graph_balance: Structural balance

Description

Structural balance

Usage

graph_balance(object, method = "triangles")

Arguments

object

a migraph-consistent object

method

one of "triangles" (the default), "walk", or "frustration".

Value

"triangles" returns the proportion of balanced triangles, ranging between 0 if all triangles are imbalanced and 1 if all triangles are balanced.