deprecated-radius-graph-constructors: Deprecated Radius Graph Constructors

deprecated-radius-graph-constructorsR Documentation

Deprecated Radius Graph Constructors

Description

create.radius.graph() and create.adaptive.radius.graph() are deprecated compatibility wrappers. Use create.rknn.graph() with type = "fixed" or type = "adaptive.radius" instead.

Usage

create.radius.graph(
  X,
  radius,
  prune.method = c("none", "local.geodesic", "global.geodesic.ratio"),
  max.path.edge.ratio.deviation.thld = 0.1,
  path.edge.ratio.percentile = 0.5,
  prune.tau = 1.05,
  prune.local.k = NULL,
  with.pruned.edge.stats = FALSE,
  connect.components = FALSE,
  connect.method = c("component.mst", "component.mst.ann", "global.mst"),
  bridge.k = NULL,
  bridge.k.max = NULL,
  bridge.growth = 2
)

create.adaptive.radius.graph(
  X,
  k.scale,
  radius.factor = 1,
  radius.rule = c("max", "min", "geomean"),
  radius.search = c("ann", "all.pairs"),
  return.timing = FALSE,
  graph.detail = c("full", "minimal"),
  prune.method = c("none", "local.geodesic", "global.geodesic.ratio"),
  max.path.edge.ratio.deviation.thld = 0.1,
  path.edge.ratio.percentile = 0.5,
  prune.tau = 1.05,
  prune.local.k = NULL,
  with.pruned.edge.stats = FALSE,
  connect.components = FALSE,
  connect.method = c("component.mst", "component.mst.ann", "global.mst"),
  bridge.k = NULL,
  bridge.k.max = NULL,
  bridge.growth = 2
)

Arguments

X

Numeric matrix or data frame with observations in rows.

radius

Fixed radius passed to create.rknn.graph(type = "fixed").

prune.method, max.path.edge.ratio.deviation.thld, path.edge.ratio.percentile, prune.tau, prune.local.k, with.pruned.edge.stats

Geometric pruning controls passed to create.rknn.graph().

connect.components, connect.method, bridge.k, bridge.k.max, bridge.growth

Component repair controls passed to create.rknn.graph().

k.scale, radius.factor, radius.rule, radius.search

Adaptive-radius parameters passed to create.rknn.graph(type = "adaptive.radius").

return.timing, graph.detail

Adaptive-radius output controls passed to create.rknn.graph().

Value

A graph list produced by create.rknn.graph(). The fixed-radius wrapper returns an object of class "radius_graph"; the adaptive-radius wrapper returns an object of class "adaptive_radius_graph". Each object contains the final adjacency and weight lists, an edge matrix and edge weights, graph-construction parameters, and component, pruning, and repair diagnostics.

Examples

X <- matrix(c(0, 1, 3), ncol = 1)
create.rknn.graph(X, type = "fixed", radius = 1.1)$edge_matrix
create.rknn.graph(X, type = "adaptive.radius", k.scale = 1)$edge_matrix


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