dyn_centrality: Deprecated name for 'centrality_series()' and...

View source: R/centrality.R

dyn_centralityR Documentation

Deprecated name for centrality_series() and path_centrality()

Description

dyn_centrality() was split in two. Its default scope = "snapshot" is now centrality_series(); scope = "temporal" is path_centrality() for closeness and betweenness and reachability() for reach. The old name still works and returns what it always returned, with a warning of class dynet_deprecated. It will be removed in a future release.

Usage

dyn_centrality(
  dn,
  measure = "degree",
  scope = c("snapshot", "temporal"),
  sessions = c("bounded", "collapse", "separate"),
  sample = NULL,
  damping = 0.85,
  mode = c("all", "out", "in"),
  start = NULL,
  end = NULL,
  step = NULL,
  window = NULL,
  exponent = 1,
  traversal_time = 0,
  prestige = "indegree",
  rescale = FALSE,
  lambda = 1,
  plot = FALSE
)

Arguments

dn, measure, sessions, sample, damping, mode, start, end, step, window, exponent, prestige, rescale, lambda, plot

As in centrality_series().

scope

"snapshot" (the default) or "temporal".

traversal_time

As in path_centrality(); nonzero only with scope = "temporal".

Value

A node-level dynet_metric, as returned by the function it forwards to.

Conditions

Warning: dynet_deprecated on every call. Errors are those of the function it forwards to, plus dynet_bad_input for mode, step or window with scope = "temporal" and a nonzero traversal_time with scope = "snapshot".

Examples

dn <- dynet(school_contacts)
# Warns, then returns what centrality_series(dn) returns.
dyn_centrality(dn)

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.