% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_percolation}
\alias{centrality_percolation}
\title{Percolation Centrality}
\usage{
centrality_percolation(x, states = NULL, ...)
}
\arguments{
\item{x}{Network input (matrix, igraph, network, cograph_network, tna object).}

\item{states}{Named numeric vector of node states (0-1). Default \code{NULL}
(all nodes get state 1).}

\item{...}{Additional arguments passed to \code{\link{centrality}} (e.g.,
\code{weighted}, \code{directed}).}
}
\value{
Named numeric vector of percolation centrality values.
}
\description{
Importance for spreading processes using node states. Each node has
a state (0-1) representing how activated it is. When all states are
equal, equivalent to betweenness.
}
\examples{
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_percolation(adj)
centrality_percolation(adj, states = c(A = 0.8, B = 0.2, C = 0.5))
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once,
\code{\link{centrality_betweenness}} which this generalizes.
}
