% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality.R
\name{centrality_transitivity}
\alias{centrality_transitivity}
\title{Local Transitivity (Clustering Coefficient)}
\usage{
centrality_transitivity(x, transitivity_type = "local", isolates = "nan", ...)
}
\arguments{
\item{x}{Network input (matrix, igraph, network, cograph_network, tna object).}

\item{transitivity_type}{Type of transitivity: \code{"local"} (default),
\code{"global"}, \code{"undirected"}, \code{"localundirected"},
\code{"barrat"} (weighted), \code{"weighted"}, or \code{"onnela"}.
\code{"onnela"} computes the Onnela / Holme weighted clustering
coefficient on the symmetrized matrix and matches
\code{tna::centralities(., "Clustering")} byte-for-byte. Auto-set
to \code{"onnela"} when \code{tna_network = TRUE} (passed via
\code{...}) and the user did not pass an explicit value.}

\item{isolates}{How to handle isolate nodes: \code{"nan"} (default) or
\code{"zero"}.}

\item{...}{Additional arguments passed to \code{\link{centrality}} (e.g.,
\code{weighted}, \code{directed}).}
}
\value{
Named numeric vector of transitivity values.
}
\description{
Proportion of triangles around each node relative to the number of
possible triangles. Measures how tightly clustered a node's neighborhood is.
}
\examples{
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_transitivity(adj)
}
\seealso{
\code{\link{centrality}} for computing multiple measures at once.
}
