Repository navigation
refactor: snake_case the dotted arguments of the structural and conversion functions - #2950
Merged
schochastics merged 31 commits intoDec 3, 2026
Conversation
This was referenced Oct 15, 2026
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 5ce5046 is merged into claude/issue-2788-subagents-faw1t1-12:
|
…e-2788-subagents-faw1t1-13 # Conflicts: # man/subgraph.Rd # man/subgraph.edges.Rd
…e-2788-subagents-faw1t1-13 # Conflicts: # R/adjacency.R # R/bipartite.R # R/centralization.R # R/cohesive.blocks.R # R/components.R # R/conversion.R # R/flow.R # R/incidence.R # R/sir.R # R/stochastic_matrix.R # R/structural-properties.R # tests/testthat/test-adjacency.R # tests/testthat/test-assortativity.R # tests/testthat/test-incidence.R
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if a4f4862 is merged into claude/issue-2788-subagents-faw1t1-12:
Further explanation regarding interpretation and methodology can be found in the documentation. Last updated for commit a4f4862. |
… simplify() docs The descriptions of `p_value` and `p_precision` had ended up under the deprecated `p.value` and `p.precision` entries, leaving the new arguments undocumented apart from their badge. The prose also still named `p.value`, `value.only` and `remove.multiple`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-2788-subagents-faw1t1-13 # Conflicts: # tests/testthat/test-structural-properties.R
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13 # Conflicts: # R/components.R
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
…e-2788-subagents-faw1t1-13
… values follow These functions had hand-written bridges for their old argument names, so a call naming the old one and passing the next argument positionally failed with "supplied more than once". Their registry entries now let the generator re-match such calls against the old signature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
schochastics
added a commit
to schochastics/rigraph
that referenced
this pull request
Dec 4, 2026
…rsion functions (igraph#2950) 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 9226253)
schochastics
added a commit
to schochastics/rigraph
that referenced
this pull request
Dec 4, 2026
…rsion functions (igraph#2950) 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 9226253)
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 13 of the stack, on top of #2948). It is the last part of the snake_case sweep and covers the remaining structural, conversion and utility functions. It also finishes the selector rename deferred in #2864.
What this does
Dots become underscores, and
no.sim→n_simfollows the count convention:graph_from_adjacency_matrix(),from_adjacency()add.colnames,add.rownamesgraph_from_biadjacency_matrix()add.namesgraph_from_graphnel()unlist.attrsassortativity()values.inbipartite_projection()remove.typecentralize()theoretical.maxexport_pajek()project.filecomponent_distribution()mul.sizedecompose()max.comps,min.verticesfit_power_law()force.continuous,p.value,p.precisionmin_cut()value.onlylocal_scan()graph.us,graph.themsimplify()remove.multiple,remove.loopssir()no.sim→n_simstochastic_matrix()column.wiseshortest_paths()inbound.edgessubgraph_from_edges()delete.verticesreciprocity()ignore.loopsknn()neighbor.degree.modedfs()order.out,in.callback,out.callbackTail arguments with a registry entry are pure registry renames. Head arguments keep the old name as a trailing
deprecated()formal. Where the function has a registry entry (simplify(),local_scan(),fit_power_law()), the generated block handles the rename (see #2859);fit_power_law()andlocal_scan()pass their...on, so their entries setpassthrough_dots.assortativity(),component_distribution()anddfs()have no registry entry and use a hand-written bridge.eccentricity(vids)→vertices: #2864 left this one out because of its hand-rolled...handling. A hand-written bridge on a trailingvids = deprecated()formal works regardless, andvertices = NULLnow selects all vertices like the other selectors.Internal live callers now use the new names: the
without_loops()/without_multiples()modifiers and the sparsepower_centrality()/alpha_centrality()helpers (simplify()), andscan_stat()(local_scan()). Deprecated wrappers are untouched. Thesubgraph.edges()snapshot accepts the extra soft-deprecation the frozen wrapper now triggers.After this PR
Among non-deprecated exported functions, the only dotted argument names left are the deliberate exclusions:
plot.igraph(),print.igraph(), the tkplot API (tkp.id,window.close),indent_print(), and the trailingdeprecated()formals that keep the legacy names.subgraph(vids)stays as well: its docs announce thatsubgraph_from_edges()takes over the name.Found along the way (unchanged, already on
main)component_distribution(mul.size = TRUE)always warns "longer object length is not a multiple of shorter object length".shortest_paths(inbound.edges = TRUE)errors with "Unknown edge selected", even on a plain directed ring.The legacy-name tests use
FALSEfor these two arguments.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)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