% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_generalized_closeness}
\alias{centrality_generalized_closeness}
\title{Generalized Closeness Centrality}
\usage{
centrality_generalized_closeness(x, mode = "all", decay_parameter = 0.5, ...)
}
\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{decay_parameter}{Numeric between 0 and 1 (the alpha parameter).
Default 0.5.}

\item{...}{Additional arguments passed to \code{\link{centrality}}.}
}
\value{
Named numeric vector of generalized closeness values.
}
\description{
Sum of alpha^d over all nodes. Generalization of decay centrality
matching tidygraph's implementation.
}
\examples{
adj <- matrix(c(0, 1, 0, 1, 0, 1, 0, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_generalized_closeness(adj)
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once,
\code{\link{centrality_decay}} (equivalent formulation).
}
