Repository navigation
refactor: Rename nodes to n in generators and centr_*_tmax() - #2860
schochastics merged 17 commits into
Conversation
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if b391ca2 is merged into claude/issue-2788-subagents-faw1t1:
|
b391ca2 to
3ad95b8
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 3ad95b8 is merged into claude/issue-2788-subagents-faw1t1:
|
…2788, #692) Vertex-count arguments unify on `n`: 11 game generators and their spec twins, the four `centr_*_tmax()` functions (`centr_degree_tmax()` and `centr_eigen_tmax()` newly gain their keyword-only migration on the way), and `graph_from_graphdb()`. Head positions keep working positionally; named `nodes =` callers are soft-deprecated via surviving sentinel formals or registry recovery. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR
3ad95b8 to
5253256
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 5253256 is merged into claude/issue-2788-subagents-faw1t1:
|
…788-subagents-faw1t1-2
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 3a153fb is merged into claude/issue-2788-subagents-faw1t1:
|
…788-subagents-faw1t1-2 # Conflicts: # R/foreign.R # tests/testthat/_snaps/games.md # tests/testthat/test-foreign.R # tests/testthat/test-games.R
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 577ccd4 is merged into claude/issue-2788-subagents-faw1t1:
Further explanation regarding interpretation and methodology can be found in the documentation. Last updated for commit 577ccd4. |
…788-subagents-faw1t1-2
…788-subagents-faw1t1-2
centr_clo_tmax(), centr_eigen_tmax(), graph_from_graphdb(), sample_asym_pref(), sample_traits(), sample_traits_callaway() and the grg(), pref(), asym_pref(), traits() and traits_callaway() specs were renamed without a test that the legacy name still works. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…788-subagents-faw1t1-2 # Conflicts: # R/centralization.R # R/foreign.R # R/games.R
…788-subagents-faw1t1-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…788-subagents-faw1t1-2
The generator now re-matches a call that uses an old head name against the old signature, so the hand-written `nodes` -> `n` bridges are gone. A call like `sample_grg(nodes = 10, 0.5, TRUE)` keeps its old meaning (`torus = TRUE`) instead of failing with "`n` supplied more than once". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…788-subagents-faw1t1-2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…788-subagents-faw1t1-2
…graph#2860) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: David Schoch <david@schochastics.net> (cherry picked from commit c67a3b7) R-side fix: snapshot the deprecation through expect_snapshot_igraph(), so the flavor's package name is normalized.
…graph#2860) Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: David Schoch <david@schochastics.net> (cherry picked from commit c67a3b7) R-side fix: snapshot the deprecation through expect_snapshot_igraph(), so the flavor's package name is normalized.
Part of #2788 (PR 2 of the stack, on top of #2859); executes the
nodes→nrow of the survey — the direction #692 recorded as essentially uncontested (62 functions already usen).What this does
Renames the vertex-count argument
nodestonin 16 functions:sample_grg/grg,sample_pref/pref,sample_asym_pref/asym_pref,sample_traits/traits,sample_traits_callaway/traits_callaway,sample_forestfire.centr_betw_tmax,centr_clo_tmax,centr_degree_tmax,centr_eigen_tmax. The latter two had no registry entry and no...yet, so they gain their standard 3.0.0 keyword-only migration here (loopsstays required-with-no-default in the tail,unfold_tree()style; the existingloops/scalelifecycle guards are preserved).graph_from_graphdb(1):nodessits after..., so this is a pure registry rename (bare-symbolnodes = ninold) — legacynodes =calls are recovered by the generated block under the usual single soft-deprecation.nodesis a head formal everywhere else, which the recovery machinery cannot rescue from.... Those functions keep a trailingnodes = deprecated()formal, and their registry entries record the head rename, so the generated block handles it (see #2859): positional calls bindnunchanged (no warning), and a call that namesnodesgets a soft-deprecation, with an error when both spellings are supplied. Dot-case wrapper functions (grg.game()etc.) keep their frozen signatures and forwardn = nodes.Selector-
nodesfunctions (ego()family,constraint(),alpha_centrality(),power_centrality()) are deliberately untouched — they rename toverticesin a later PR of this stack.Notes for review
node =,nod =) of the retired head name now fail loudly with the "spell out the full argument name" guidance instead of partial-matching — same trade-off theattr→weightsrename shipped.tests/testthat/_snaps/foreign.mdwas updated by hand for the renamed error text becausegraph_from_graphdb()needs network access unavailable in the development sandbox; the offline-renderable messages were verified to match exactly.The #2788 stack
Each PR is based on the previous one and merges in this order:
algotoalgorithminpage_rank(),feedback_arc_set()andfeedback_vertex_set()#2859:algo→algorithmnodestonin generators andcentr_*_tmax()#2860:nodes→n(vertex counts) ← this PRcluster_infomap()#2861: weights argumentsnormalized#2862: normalization flags →normalizedverticesandvertex#2864: selectors →vertices/vertexedges#2943: edge selectors →edgesindextovertices/edgesin the attribute accessors #2944: attribute accessors:index→vertices/edgesn_iter/max_iter#2945: iterations →n_iter/max_iterMu→mu)algorithmand measure selection tomeasure#2951: algorithm family →algorithm/measure(closes Algorithm-selection argument names: census ofmethod/algorithm/algo/impl/implementation#2932)🤖 Generated with Claude Code
https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR
Generated by Claude Code