% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mcml.R
\name{net_aggregate_weights}
\alias{net_aggregate_weights}
\title{Aggregate Edge Weights}
\usage{
net_aggregate_weights(w, method = "sum", n_possible = NULL)
}
\arguments{
\item{w}{Numeric vector of edge weights}

\item{method}{Aggregation method: "sum", "mean", "median", "max", "min",
"prod", "density", "geomean"}

\item{n_possible}{Number of possible edges (for density calculation)}
}
\value{
Single aggregated value
}
\description{
Aggregates a vector of edge weights using various methods.
Compatible with igraph's edge.attr.comb parameter.
}
\examples{
w <- c(0.5, 0.8, 0.3, 0.9)
net_aggregate_weights(w, "sum")   # 2.5
net_aggregate_weights(w, "mean")  # 0.625
net_aggregate_weights(w, "max")   # 0.9
mat <- matrix(c(0, 0.5, 0.5, 0.3, 0, 0.7, 0.4, 0.6, 0), 3, 3, byrow = TRUE)
net_aggregate_weights(mat)
}
