refactor: replace .Call() with _impl() functions (subset of #2562)#2612
Draft
refactor: replace .Call() with _impl() functions (subset of #2562)#2612
.Call() with _impl() functions (subset of #2562)#2612Conversation
Agent-Logs-Url: https://github.com/igraph/rigraph/sessions/d6b7c067-26c4-4ec6-8d8c-1b56627b2277 Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
krlmlr
April 12, 2026 17:39
View session
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.
Summary
This PR extracts the actual
.Call()→_impl()code replacements from #2562, without the comment-only additions. It is a strict subset of the diff of that PR, intended to be a commit that can be merged into it.Replacements Made (
.Call()→_impl())cluster_spinglass()community_spinglass_impl()/community_spinglass_single_impl()subcomponent()subcomponent_impl()girth()girth_impl()ego_size()neighborhood_size_impl()ego()neighborhood_impl()make_ego_graph()neighborhood_graphs_impl()ivs()independent_vertex_sets_impl()community.to.membership2()community_to_membership_impl()count_components()connected_components_impl(details=TRUE)$nocount_max_cliques()maximal_cliques_count_impl()/maximal_cliques_subset_impl()bipartite_projection()bipartite_projection_impl()disjoint_union()disjoint_union_many_impl()add_edges()add_edges_impl()read.graph.edgelist()read_graph_edgelist_impl()read.graph.lgl()read_graph_lgl_impl()write.graph.dimacs()write_graph_dimacs_flow_impl()layout_*_impl()functionsAlso adds missing
on.exit(.Call(Rx_igraph_finalizer))inidentical_graphs()andread.graph.dimacs().Tests
All 7994 tests pass.
.Call()expressions with calls to_implfunctions #2561 (partial)