detect.local.extrema: Detect Local Extrema in a Graph

View source: R/local_extrema.R

detect.local.extremaR Documentation

Detect Local Extrema in a Graph

Description

Detect Local Extrema in a Graph

Usage

detect.local.extrema(
  adj.list,
  weight.list,
  y,
  max.radius,
  min.neighborhood.size,
  detect.maxima = TRUE,
  custom.prefix = NULL
)

Arguments

adj.list

Graph adjacency list using 1-based vertex indices.

weight.list

Edge-length list aligned with adj.list.

y

Numeric vertex function values.

max.radius

Maximum graph-geodesic radius for neighborhoods.

min.neighborhood.size

Minimum neighborhood size required.

detect.maxima

Logical; if TRUE, detect maxima, otherwise minima.

custom.prefix

Optional label prefix.

Value

A local_extrema object.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.