Repository navigation
refactor: snake_case the dotted arguments of the community, HRG, motif and graphlet functions - #2948
Merged
schochastics merged 33 commits intoDec 3, 2026
Conversation
…f and graphlet functions Count prefixes follow the `n` convention (`nb.trials` → `n_trials`, `num.samples` → `n_samples`, `no.of.communities` → `n_communities`), and `graphlet_proj(Mu)` becomes `mu`. Legacy names are recovered with a soft-deprecation. Part of #2788. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 15, 2026
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if e48f965 is merged into claude/issue-2788-subagents-faw1t1-11:
|
…e-2788-subagents-faw1t1-12 # Conflicts: # man/graphlet_basis.Rd # man/graphlets.project.Rd
…e-2788-subagents-faw1t1-12 # Conflicts: # R/community.R # R/glet.R # R/hrg.R # R/motifs.R # tests/testthat/test-community.R
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if f8ea934 is merged into claude/issue-2788-subagents-faw1t1-11:
Further explanation regarding interpretation and methodology can be found in the documentation. Last updated for commit f8ea934. |
…e-2788-subagents-faw1t1-12
…tweenness() The snake_case sweep also renamed the result component in the description, but the C glue still returns it as `edge.betweenness`; only the argument was renamed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12 # Conflicts: # tests/testthat/_snaps/structural-properties.md
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12 # Conflicts: # tests/testthat/_snaps/structural-properties.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-2788-subagents-faw1t1-12
…e-2788-subagents-faw1t1-12
schochastics
added a commit
to schochastics/rigraph
that referenced
this pull request
Dec 4, 2026
…f and graphlet functions (igraph#2948) Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: krlmlr <krlmlr@users.noreply.github.com> Co-authored-by: schochastics <schochastics@users.noreply.github.com> (cherry picked from commit 60169fd)
schochastics
added a commit
to schochastics/rigraph
that referenced
this pull request
Dec 4, 2026
…f and graphlet functions (igraph#2948) Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: krlmlr <krlmlr@users.noreply.github.com> Co-authored-by: schochastics <schochastics@users.noreply.github.com> (cherry picked from commit 60169fd)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2788 (PR 12 of the stack, on top of #2947). It continues the snake_case sweep for
R/community.R,R/hrg.R,R/motifs.RandR/glet.R, and settles theMuquestion from the thread (no case-sensitive argument names, soMu→mu).What this does
cluster_spinglass():start.temp,stop.temp,cool.fact,update.rule,gamma.minus→ snake_casecluster_fluid_communities():no.of.communities→n_communitiescluster_edge_betweenness():edge.betweenness→edge_betweennesscluster_infomap():nb.trials→n_trialsconsensus_tree(),predict_edges():num.samples→n_samples,num.bins→n_binsmotifs(),count_motifs(),sample_motifs():cut.prob→cut_prob,sample.size→sample_sizegraphlet_proj():Mu→muCount prefixes (
no.of.,nb.,num.) follow thenconvention, as in #2946.All are pure registry renames except
cluster_fluid_communities(), which takes its head argument through a trailingdeprecated()sentinel. The deprecated wrappers (spinglass.community(),graph.motifs(),hrg.predict(), …) are untouched and forward the old names through the recovery.graphlets()still returns its weights as$Mu. That is a return-value element, not an argument, so it is out of scope.Tests
There are table-driven
expect_legacy_arg()tests for every rename.same_result()in the helper now compares classed lists such ascommunitieselement by element, becauselength.communities()counts communities, not list elements.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 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) ← this PRalgorithmand measure selection tomeasure#2951: algorithm family →algorithm/measure(closes Algorithm-selection argument names: census ofmethod/algorithm/algo/impl/implementation#2932)🤖 Generated with Claude Code