Extract vertices belonging to a specific basin from a basin complex
Source:R/basin_cx.R
get.basin.vertices.RdThis function extracts all vertex indices that belong to a specified basin from a gradient flow basin complex object. The basin is identified by its label (e.g., "M1" or "m2").
Arguments
- x
An object of class 'basin_cx', typically returned by
create.basin.cx()- id
A character string specifying the basin label to extract (e.g., "M1" for first maximum, "m2" for second minimum)
Details
Basin labels follow the naming convention of the basin complex: "Mx" for maxima basins and "mx" for minima basins, where x is a sequential number assigned based on function value ordering.