fix: update wrapper functions for C API parameter changes #2469
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.
The autogenerated
_implfunctions changed their parameter signatures (e.g.,loopsboolean →allowed_edge_typesenum, parameter names using underscores), but wrapper functions and tests weren't updated.Parameter Type Changes
sample_gnp(),sample_gnm(),sbm_game(),rewire_each_edge()now map booleanloops/multipletoallowed_edge_typesenum ("simple", "loops", "multi", "all")strength(),centralization_degree()convert booleanloopsto enum ("twice", "none", "once")Parameter Name Changes (dot → underscore)
Updated wrapper functions and tests:
similarity():vit.from/vit.to→from/tocommunity_label_propagation():lpa.variant→lpa_variantcommunity_leiden():vertex_weights→vertex_out_weights/vertex_in_weightscommunity_infomap():e_weights/v_weights→edge_weights/vertex_weightsbiadjacency():incidence→biadjmatrixbfs.cutoff→bfs_cutoff,use.cycle.order→use_cycle_orderOther Fixes
UNLIMITED = -1constant for autogenerated function defaultsgraph.isoclass.subgraph()double vertex ID offset (was subtracting 1 twice)shanddetailsparameters fromautomorphism_group()(no longer accepted by_impl)loops/multipleattribute assignments instatic_fitness_game_impl()Example of typical change pattern:
Original prompt
nextbranch #2468✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.