met.geodesicDiameter.single: Geodesic distances and diameter

View source: R/met.geodesicDiameter.single.R

met.geodesicDiameter.singleR Documentation

Geodesic distances and diameter

Description

Calculates 1) Geodesic Distances and 2) network diameter .

Usage

met.geodesicDiameter.single(
  m,
  weighted = TRUE,
  shortest.weight = FALSE,
  normalization = TRUE,
  directed = TRUE,
  out = TRUE
)

Arguments

m

a square adjacency matrix.

weighted

if FALSE, it binarizes the square adjacency matrix M. Geodesic distances and diameter are based only on the presence or absence of edges.

shortest.weight

if false, it considers the higher met.strength as the shortest path.

normalization

normalizes the weigths of the links i.e. divides them by the average strength of the network. Argument normalization can't be TRUE when argument weighted is FALSE.

directed

if false, then it symmetrizes the matrix. Otherwise, it calculates geodesic distances and diameter according to the directionality of the links.

out

if true, it considers

Details

Binary network met.density is the ratio of existing links of a network in relation to all potential links.

Value

A list of two elements:

  • The first element is the diameter of the network according to the option specified (weigthed or not, directed or not, throught shortest weights or stronger weights)

  • The second element is the geodesic distances between all nodes according to the option specified (weigthed or not, directed or not, throught shortest weights or stronger weights)

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.