Computes the radius of a network - the minimum eccentricity across all nodes.
The eccentricity of a node is the maximum shortest path distance to any other node.
The radius is the smallest such maximum distance.
Usage
network_radius(x, directed = NULL, ...)
Value
Numeric: the network radius
Arguments
x
Network input: matrix, igraph, network, cograph_network, or tna object
directed
Logical. Consider edge direction? Default TRUE for directed graphs.
# Star graph: center has eccentricity 1, leaves have 2, so radius = 1star <- matrix(c(0,1,1,1, 1,0,0,0, 1,0,0,0, 1,0,0,0), 4, 4)
network_radius(star) # 1