Repository navigation
refactor: snake_case weights arguments in clique functions and cluster_infomap() - #2861
Conversation
7787af7 to
1a574c1
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 1a574c1 is merged into claude/issue-2788-subagents-faw1t1-2:
|
…er_infomap()` (#2788) `vertex.weights` -> `vertex_weights`, `min.weight` -> `min_weight`, `max.weight` -> `max_weight` in the weighted-clique functions, and `e.weights` -> `weights`, `v.weights` -> `vertex_weights` in `cluster_infomap()`, via registry renames with soft-deprecated recovery. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RTPj4qNv2FWui6etixZeuR
1a574c1 to
081a1f1
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 081a1f1 is merged into claude/issue-2788-subagents-faw1t1-2:
|
…-2788-subagents-faw1t1-3
… after merging the base branch Part of #2788. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 9feba26 is merged into claude/issue-2788-subagents-faw1t1-2:
|
…-2788-subagents-faw1t1-3 # Conflicts: # R/cliques.R # R/community.R
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if d0a0cff is merged into claude/issue-2788-subagents-faw1t1-2:
Further explanation regarding interpretation and methodology can be found in the documentation. Last updated for commit d0a0cff. |
The legacy-name test exercised `vertex.weights` and `min.weight` but not `max.weight`, which the same change renamed to `max_weight`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3 # Conflicts: # R/cliques.R # R/community.R
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3
…-2788-subagents-faw1t1-3
…er_infomap()` (igraph#2861) 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 26e9d9e)
…er_infomap()` (igraph#2861) 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 26e9d9e)
Part of #2788 (PR 3 of the stack, on top of #2860); executes the weights-spelling row of the survey plus the
vertex.weights/min.weight/max.weightnames called out in the issue comments.What this does
Pure registry renames (all arguments already sit after
...with 3.0.0 entries); legacy spellings are recovered under the standard single soft-deprecation:weighted_cliques():vertex.weights→vertex_weights,min.weight→min_weight,max.weight→max_weightlargest_weighted_cliques(),weighted_clique_num():vertex.weights→vertex_weightscluster_infomap():e.weights→weightsandv.weights→vertex_weights— this pair was missing from the Comprehensive plan: argument renames for 3.0.0 #2788 survey table;e.weightshas exactly the standardweightssemantics (NULLpicks up theweightedge attribute), andv.weightsmatchescluster_leiden()'s existingvertex_weights. Theinfomap.community()wrapper keeps its frozen dotted formals (now documented locally with deprecated badges) and forwards to the new names.This aligns the whole package on exactly two vertex-weight spellings (
vertex_weights) and one edge-weight spelling (weights) among non-deprecated functions.Deliberately out of scope (survey corrections)
The issue's weights row lists two functions this PR does not touch, because renaming them to
weightswould be semantically wrong:make_chordal_ring(w)—wis the shift matrix defining the extended chordal ring, not edge weights. A rename should go to something likeshifts(follow-up decision).graph_from_graphnel(weight)— a logical toggle ("import graphNEL edge weights?"), not a weights vector. A rename should go to something likeuse_weights(follow-up decision).Other weight-adjacent spellings left alone on semantic grounds:
out.weights/in.weightsinsample_chung_lu()(fitness vectors),weight.*inlayout_with_dh()(objective-function coefficients). These belong to the dotted-name case sweep.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)cluster_infomap()#2861: weights arguments ← this PRnormalized#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