% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_kreach}
\alias{centrality_kreach}
\title{Geodesic K-Path Centrality}
\usage{
centrality_kreach(x, mode = "all", k = 3, ...)
}
\arguments{
\item{x}{Network input (matrix, igraph, network, cograph_network, tna object).}

\item{mode}{For directed networks: \code{"all"} (default), \code{"in"}, or
\code{"out"}.}

\item{k}{Maximum path length. Default 3.}

\item{...}{Additional arguments passed to \code{\link{centrality}} (e.g.,
\code{weighted}, \code{directed}, \code{invert_weights}).}
}
\value{
Named numeric vector of k-reach centrality values.
}
\description{
Count of nodes reachable within shortest path distance \code{k}. Measures
how many nodes a given node can reach quickly.
}
\examples{
adj <- matrix(c(0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0), 4, 4)
rownames(adj) <- colnames(adj) <- c("A", "B", "C", "D")
centrality_kreach(adj, k = 2)
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once.
}
