% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_pairwisedis}
\alias{centrality_pairwisedis}
\title{Pairwise Disconnectivity (Potapov et al. 2008)}
\usage{
centrality_pairwisedis(x, ...)
}
\arguments{
\item{x}{Directed network input (matrix, igraph, cograph_network, tna object).}

\item{...}{Additional arguments passed to \code{\link{centrality}}.}
}
\value{
Named numeric vector of pairwise disconnectivity values in \eqn{[0, 1]}.
}
\description{
For a directed network, \code{pairwisedis(v)} is the fraction of ordered
reachable pairs \eqn{(s, t)} that become unreachable when node \eqn{v} is
removed:
\deqn{PD(v) = (|P(G)| - |P(G - v)|) / |P(G)|}
where \eqn{|P(G)|} is the number of ordered pairs \eqn{(s, t), s \ne t}
with a directed path from \eqn{s} to \eqn{t}.
}
\details{
Bit-exact match against \code{centiserve::pairwisedis} on directed
graphs. Requires the input to be directed; returns \code{NA} with a
warning on undirected inputs.
}
\examples{
adj <- matrix(c(0,1,0, 0,0,1, 1,0,0), 3, 3, byrow = TRUE)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_pairwisedis(adj)
}
\references{
Potapov, A. P., Voss, N., Sasse, N., & Wingender, E. (2008). Topology of
mammalian transcription networks. \emph{Genome Informatics}, 18, 193-204.
}
\seealso{
\code{\link{centrality}}, \code{\link{robustness}}.
}
