% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_diffusion}
\alias{centrality_diffusion}
\title{Diffusion Centrality}
\usage{
centrality_diffusion(x, mode = "all", lambda = 1, ...)
}
\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{lambda}{Scaling factor for neighbor contributions. Default 1.}

\item{...}{Additional arguments passed to \code{\link{centrality}} (e.g.,
\code{weighted}, \code{directed}).}
}
\value{
Named numeric vector of diffusion centrality values.
}
\description{
Sum of scaled degrees of a node and its neighbors, measuring the node's
potential for spreading information through the network.
}
\examples{
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_diffusion(adj)
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once.
}
