% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cluster-metrics.R
\name{aggregate_layers}
\alias{aggregate_layers}
\alias{lagg}
\title{Aggregate Layers}
\usage{
aggregate_layers(
  layers,
  method = c("sum", "mean", "max", "min", "union", "intersection"),
  weights = NULL
)

lagg(
  layers,
  method = c("sum", "mean", "max", "min", "union", "intersection"),
  weights = NULL
)
}
\arguments{
\item{layers}{List of adjacency matrices}

\item{method}{Aggregation: "sum", "mean", "max", "min", "union", "intersection"}

\item{weights}{Optional layer weights (for weighted sum)}
}
\value{
Aggregated adjacency matrix
}
\description{
Combines multiple network layers into a single network.
}
\examples{
# layers <- list(L1 = mat1, L2 = mat2, L3 = mat3)
# aggregate_layers(layers, "sum")           # Total
# aggregate_layers(layers, "mean")          # Average
# aggregate_layers(layers, "union")         # Any edge
# aggregate_layers(layers, "intersection")  # All edges
}
