View source: R/met.geodesicDiameter.single.R
met.geodesicDiameter.single | R Documentation |
Calculates 1) Geodesic Distances and 2) network diameter .
met.geodesicDiameter.single(
m,
weighted = TRUE,
shortest.weight = FALSE,
normalization = TRUE,
directed = TRUE,
out = TRUE
)
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 |
Binary network met.density is the ratio of existing links of a network in relation to all potential links.
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)
Sebastian Sosa, Ivan Puga-Gonzalez.
Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.