% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/edge-metrics.R
\name{neighborhood_overlap}
\alias{neighborhood_overlap}
\title{Neighborhood Overlap (Jaccard) for Each Edge}
\usage{
neighborhood_overlap(x, top = NULL, directed = NULL, digits = NULL, ...)
}
\arguments{
\item{x}{Network input: matrix, igraph, network, cograph_network, or tna
object.}

\item{top}{Integer or NULL. Return only the top N edges. Default NULL.}

\item{directed}{Logical or NULL. Default NULL (auto-detect).}

\item{digits}{Integer or NULL. Round numeric columns. Default NULL.}

\item{...}{Additional arguments passed to \code{\link{edge_centrality}}.}
}
\value{
A data frame sorted by \code{overlap} (descending) with columns:
\code{from}, \code{to}, \code{weight} (if weighted), \code{overlap},
\code{shared_neighbors}.
}
\description{
Convenience wrapper around \code{\link{edge_centrality}} that returns only
the overlap measure sorted by overlap descending.
}
\examples{
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
cograph::neighborhood_overlap(adj)
}
\seealso{
\code{\link{edge_centrality}}, \code{\link{simmelian_strength}}
}
