Skip to content

refactor: Rename normalization flags to normalized - #2862

Merged
schochastics merged 18 commits into
claude/issue-2788-subagents-faw1t1-3from
claude/issue-2788-subagents-faw1t1-4
Dec 3, 2026
Merged

schochastics merged 18 commits into
claude/issue-2788-subagents-faw1t1-3from
claude/issue-2788-subagents-faw1t1-4

Conversation

@krlmlr

@krlmlr krlmlr commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Part of #2788 (PR 4 of the stack, on top of #2861); executes the "normalized" row of the survey — nine functions already spell this flag normalized, and these are the three stragglers.

What this does

  • power_centrality(): rescale → normalized (pure registry rename; the arg sits after ...).
  • tk_coords(): norm → normalized (pure registry rename). The retired norm = and its abbreviations n/no/nor are recovered with the soft-deprecation; since refactor: Rename algo to algorithm in page_rank(), feedback_arc_set() and feedback_vertex_set() #2859 an abbreviation shared by an old name and its own new name counts as that argument, not as ambiguous.
  • hits_scores(): scale → normalized. This function uses the strict check_dots_empty() style (no registry entry), so the rename keeps a trailing scale = deprecated() sentinel with an in-body bridge: soft-deprecation, value forwarded, and an error when both spellings are supplied. The soft-deprecated hub_score()/authority_score() keep their frozen scale formals and forward to normalized; same for bonpow() (rescale) and tkplot.getcoords() (norm), each with a local deprecated-badge @param where @inheritParams no longer covers the old name.

Deliberately untouched

  • eigen_centrality(scale = ), centr_eigen(scale = ), centr_eigen_tmax(scale = ) — already-neutered deprecated() formals (normalization is always on); nothing to rename.
  • Coordinate-rescaling rescale in plot.igraph() and the embedding functions' scaled — different semantics.

The #2788 stack

Each PR is based on the previous one and merges in this order:

  1. refactor: Rename algo to algorithm in page_rank(), feedback_arc_set() and feedback_vertex_set() #2859: algo → algorithm
  2. refactor: Rename nodes to n in generators and centr_*_tmax() #2860: nodes → n (vertex counts)
  3. refactor: snake_case weights arguments in clique functions and cluster_infomap() #2861: weights arguments
  4. refactor: Rename normalization flags to normalized #2862: normalization flags → normalized ← this PR
  5. refactor: Purge legacy alias formals via the migration registry #2863: hand-rolled alias formals into the registry
  6. refactor: Rename vertex-selector arguments to vertices and vertex #2864: selectors → vertices/vertex
  7. refactor: Rename edge-selector arguments to edges #2943: edge selectors → edges
  8. refactor: Rename index to vertices/edges in the attribute accessors #2944: attribute accessors: index → vertices/edges
  9. refactor: Rename iteration arguments to n_iter/max_iter #2945: iterations → n_iter/max_iter
  10. refactor: snake_case the dotted arguments of the graph generators and degree-sequence functions #2946: snake_case: generators and degree sequences
  11. refactor: snake_case the dotted arguments of the layout functions #2947: snake_case: layouts
  12. refactor: snake_case the dotted arguments of the community, HRG, motif and graphlet functions #2948: snake_case: community, HRG, motifs, graphlets (Mu → mu)
  13. refactor: snake_case the dotted arguments of the structural and conversion functions #2950: snake_case: structural and conversion functions
  14. refactor: Rename algorithm-selection arguments to algorithm and measure selection to measure #2951: algorithm family → algorithm/measure (closes Algorithm-selection argument names: census of method/algorithm/algo/impl/implementation #2932)

🤖 Generated with Claude Code

https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if f27a205 is merged into claude/issue-2788-subagents-faw1t1-3:

  • ✔️as_adjacency_matrix: 806ms -> 805ms [-2.7%, +2.35%]
  • ✔️as_biadjacency_matrix: 815ms -> 825ms [-0.92%, +3.27%]
  • ✔️as_data_frame_both: 1.69ms -> 1.7ms [-3.15%, +4.12%]
  • ✔️as_long_data_frame: 4.35ms -> 4.29ms [-7.42%, +4.34%]
  • ✔️es_attr_filter: 3.04ms -> 3.08ms [-5.17%, +7.94%]
  • ✔️graph_from_adjacency_matrix: 131ms -> 130ms [-4.89%, +3.46%]
  • ✔️graph_from_data_frame: 4.1ms -> 4.02ms [-7.16%, +3.22%]
  • ✔️vs_attr_filter: 1.64ms -> 1.69ms [-1.41%, +7.38%]
  • ✔️vs_by_name: 1.05ms -> 1.04ms [-4.35%, +2%]
    Further explanation regarding interpretation and methodology can be found in the documentation.

@krlmlr
krlmlr force-pushed the claude/issue-2788-subagents-faw1t1-4 branch from f27a205 to 691dc3d Compare September 3, 2026 09:57
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 691dc3d is merged into claude/issue-2788-subagents-faw1t1-3:

  • ✔️as_adjacency_matrix: 704ms -> 702ms [-2.81%, +2.3%]
  • ✔️as_biadjacency_matrix: 709ms -> 703ms [-2%, +0.37%]
  • ✔️as_data_frame_both: 1.55ms -> 1.56ms [-0.94%, +1.84%]
  • ✔️as_long_data_frame: 3.97ms -> 3.99ms [-0.49%, +1.94%]
  • ✔️es_attr_filter: 2.76ms -> 2.77ms [-0.86%, +1.16%]
  • ✔️graph_from_adjacency_matrix: 138ms -> 138ms [-1.17%, +1.78%]
  • ✔️graph_from_data_frame: 3.69ms -> 3.73ms [-0.27%, +1.95%]
  • ✔️vs_attr_filter: 1.48ms -> 1.49ms [-0.37%, +2.32%]
  • ✔️vs_by_name: 955µs -> 946µs [-4.47%, +2.64%]
    Further explanation regarding interpretation and methodology can be found in the documentation.

`power_centrality(rescale = )`, `hits_scores(scale = )`
and `tk_coords(norm = )` unify on `normalized`,
matching the nine functions that already use that name.
Legacy spellings are soft-deprecated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR
@krlmlr
krlmlr force-pushed the claude/issue-2788-subagents-faw1t1-4 branch from 691dc3d to d690ad3 Compare September 10, 2026 09:03
schochastics and others added 2 commits October 15, 2026 21:09
Part of #2788.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 404b0db is merged into claude/issue-2788-subagents-faw1t1-3:

  • ✔️E_named: 124ms -> 123ms [-5.03%, +2.42%]
  • ✔️V_named: 251ms -> 249ms [-7.08%, +5.19%]
  • ✔️all_simple_paths_named: 91.4ms -> 92.2ms [-0.95%, +2.69%]
  • ✔️as_adjacency_matrix: 126ms -> 130ms [-1.52%, +8.07%]
  • ✔️as_biadjacency_matrix: 140ms -> 139ms [-4.72%, +2.69%]
  • ✔️as_data_frame_both: 143ms -> 147ms [-4.92%, +9.98%]
  • ✔️as_long_data_frame: 118ms -> 121ms [-2.13%, +8.39%]
  • ✔️ego_order2_named: 105ms -> 109ms [-3.74%, +12.57%]
  • ✔️es_attr_assign: 137ms -> 135ms [-9.68%, +5.68%]
  • ✔️es_attr_filter: 135ms -> 136ms [-0.97%, +2.71%]
  • ✔️graph_from_adjacency_matrix: 159ms -> 161ms [-0.64%, +3%]
  • ✔️graph_from_data_frame: 157ms -> 158ms [-0.66%, +1.89%]
  • ✔️head_of_named: 102ms -> 101ms [-2.62%, +1%]
  • ✔️incident_edges: 120ms -> 117ms [-7.38%, +2.14%]
  • ✔️max_cliques_named: 18.5ms -> 17.3ms [-18.75%, +5.88%]
  • ✔️neighbors_by_name: 148ms -> 147ms [-1.89%, +1.36%]
  • ✔️union_named: 139ms -> 138ms [-2.7%, +0.58%]
  • ✔️vs_attr_filter: 168ms -> 171ms [-2.31%, +6.58%]
  • ✔️vs_by_name: 144ms -> 147ms [-1.09%, +5.69%]
    Further explanation regarding interpretation and methodology can be found in the documentation.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 2034c65 is merged into claude/issue-2788-subagents-faw1t1-3:

Status Name Current Incoming Interval
✔️ V_named 376.8ms 375ms [-1.86%, +0.89%]
✔️ graph_from_adjacency_matrix 229.6ms 230ms [-0.28%, +0.65%]
❗🐌 graph_from_data_frame 216.4ms 218.7ms [+0.11%, +2.03%]
✔️ vs_subset_positional 203.4ms 202.7ms [-1.5%, +0.81%]
✔️ as_biadjacency_matrix 189.5ms 190.3ms [-0.89%, +1.76%]
✔️ es_attr_assign 184.6ms 184.5ms [-0.63%, +0.49%]
✔️ es_attr_filter 182.4ms 182.5ms [-0.42%, +0.54%]
✔️ as_adjacency_matrix 177.8ms 177.5ms [-0.59%, +0.26%]
✔️ E_named 171.3ms 172.6ms [-0.05%, +1.6%]
✔️ vs_by_name 171.5ms 171.4ms [-0.58%, +0.54%]
✔️ max_cliques_sizes_named 160.1ms 160ms [-1.03%, +0.9%]
✔️ as_data_frame_both 155.9ms 155.5ms [-0.88%, +0.37%]
✔️ as_long_data_frame 145.3ms 146.2ms [-0.13%, +1.44%]
✔️ incident_edges 144.5ms 144.6ms [-1.05%, +1.2%]
✔️ union_named 142.8ms 142.6ms [-0.74%, +0.5%]
✔️ vs_attr_filter 137ms 136ms [-1.5%, +0.07%]
✔️ head_of_named 122ms 122.6ms [-0.28%, +1.35%]
✔️ ego_order2_named 110.3ms 109.3ms [-1.72%, +0.06%]
🚀 neighbors_by_name 104.5ms 104ms [-0.88%, -0.09%]
✔️ all_simple_paths_named 97.1ms 97.4ms [-0.29%, +0.81%]
🚀 vs_by_literal_name 71.2ms 70.7ms [-1.38%, -0.17%]
✔️ degree_few_vertices 65.6ms 65.5ms [-1.13%, +0.85%]
✔️ strength_weighted_named 22.4ms 22.3ms [-1.08%, +0.82%]
✔️ max_cliques_named 20.1ms 20.1ms [-0.62%, +0.14%]

Further explanation regarding interpretation and methodology can be found in the documentation.

Last updated for commit 2034c65.

@schochastics schochastics reopened this Dec 3, 2026
@schochastics schochastics reopened this Dec 3, 2026
@schochastics schochastics reopened this Dec 3, 2026
@schochastics
schochastics merged commit 2d7e265 into main Dec 3, 2026
12 checks passed
@schochastics
schochastics deleted the claude/issue-2788-subagents-faw1t1-4 branch December 3, 2026 20:01
schochastics pushed a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Schoch <david@schochastics.net>
Co-authored-by: schochastics <schochastics@users.noreply.github.com>
(cherry picked from commit 2d7e265)

R-side fix: snapshot the deprecation through expect_snapshot_igraph(), so the flavor's package name is normalized.
schochastics pushed a commit to schochastics/rigraph that referenced this pull request Dec 4, 2026
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: David Schoch <david@schochastics.net>
Co-authored-by: schochastics <schochastics@users.noreply.github.com>
(cherry picked from commit 2d7e265)

R-side fix: snapshot the deprecation through expect_snapshot_igraph(), so the flavor's package name is normalized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Algorithm-selection argument names: census of method/algorithm/algo/impl/implementation

3 participants