globalCoeff: Compute global coefficients of a net work.

View source: R/globalCoeff.R

globalCoeffR Documentation

Compute global coefficients of a net work.

Description

Compute global coefficients of a net work.

Usage

globalCoeff(x, list = FALSE)

Arguments

x

a network produced from quickNet, or an adjacency matrix of network data.

list

whether arrange the results as a list. The default is FALSE.

Value

  • globalStrength: the global strength.

  • AGS: the average of all the edge weights in the network. equals globalStrength/(N * (N-1)/2), where N is the number of nodes in the network.

  • ASPL: the global average shortest path length.

  • CC: the global clustering coefficient. The average clustering coefficient for each node in the network.

Examples


data('mtcars')

globalCoeff <- globalCoeff(quickNet(mtcars))


LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.