% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality-extended.R
\name{centralization}
\alias{centralization}
\title{Centralization index}
\usage{
centralization(
  x,
  measure = c("degree", "betweenness", "closeness", "eigenvector"),
  directed = NULL,
  mode = "all",
  ...
)
}
\arguments{
\item{x}{Network input}

\item{measure}{One of "degree", "betweenness", "closeness", "eigenvector"}

\item{directed}{Logical or NULL}

\item{mode}{"all", "in", or "out"}

\item{...}{Additional arguments passed to to_igraph()}
}
\value{
Numeric scalar in \eqn{[0, 1]}
}
\description{
Computes Freeman's centralization for degree, betweenness, closeness,
or eigenvector centrality.
}
\examples{
star <- matrix(0, 5, 5)
star[1, 2:5] <- 1; star[2:5, 1] <- 1
cograph::centralization(star, "degree")
}
