% 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), or \code{"weighted"}.}

\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.
}
