% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cluster-metrics.R
\name{verify_with_igraph}
\alias{verify_with_igraph}
\alias{verify_igraph}
\title{Verify Against igraph}
\usage{
verify_with_igraph(x, clusters, method = "sum", type = "raw")

verify_igraph(x, clusters, method = "sum", type = "raw")
}
\arguments{
\item{x}{Adjacency matrix}

\item{clusters}{Cluster specification}

\item{method}{Aggregation method}

\item{type}{Normalization type. Defaults to "raw" for igraph compatibility.}
}
\value{
List with comparison results
}
\description{
Confirms numerical match with igraph's contract_vertices + simplify.
}
\examples{
if (requireNamespace("igraph", quietly = TRUE)) {
  mat <- matrix(runif(100), 10, 10)
  diag(mat) <- 0
  rownames(mat) <- colnames(mat) <- LETTERS[1:10]
  clusters <- c(1,1,1,2,2,2,3,3,3,3)
  verify_igraph(mat, clusters)
}
}
