Skip to content

Implement S3 generics for network functions#136

Draft
Copilot wants to merge 36 commits into
mainfrom
copilot/implement-generics-for-network-functions
Draft

Implement S3 generics for network functions#136
Copilot wants to merge 36 commits into
mainfrom
copilot/implement-generics-for-network-functions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 30, 2026

Description

Completes the S3 generic dispatch pattern for all manipulation and modification functions.

New .default methods

  • to_eulerian.default() — the last to_* function missing a fallback
  • from_subgraphs.default(), from_egos.default(), from_waves.default(), from_slices.default(), from_ties.default() — delegate to .list methods

New manipulation functions

  • arrange_nodes() / arrange_changes() — reorder nodes/changes by attribute
  • rename_changes() / rename_info() — rename columns
  • filter_info() / select_info() — subset network information attributes

Bug fixes

  • Fixed as_input() argument order in bind_nodes.default(), filter_nodes.default(), join_nodes.default()FUN was passed positionally where .data was expected

NAMESPACE & docs

  • Registered all new S3 methods and exports
  • Updated manip_nodes_num.Rd, manip_changes.Rd, manip_info.Rd

Checklist:

  • Documentation
    • DESCRIPTION file version is bumped by the appropriate increment (major, minor, patch)
    • Date in DESCRIPTION is correct
    • Longer functions are commented inline or broken down into helper functions to help debugging
  • PR form
    • Title indicates expected version number
    • PR description above and the NEWS.md file are aligned
    • Description above itemizes changes under subsection titles, e.g. "## Data""
    • Closed, fixed, or related issues are referenced and explained in the description above, e.g. "Fixed #0 by adding A"

jhollway added 30 commits April 20, 2026 13:54
…, net_node_attributes(), and net_tie_attributes()
…ects, includes some column renaming and reordering
Copilot AI changed the title Implement generics pattern with .default methods for all manipulation and modification functions Implement S3 generics with .default methods for all manipulation and modification functions May 30, 2026
Copilot AI requested a review from jhollway May 30, 2026 04:58
Copilot AI force-pushed the copilot/implement-generics-for-network-functions branch from 4ed26a2 to 6372718 Compare May 30, 2026 05:14
Copilot AI changed the title Implement S3 generics with .default methods for all manipulation and modification functions Complete S3 generic/default method pattern for all modif_* and manip_* functions May 30, 2026
Copilot AI changed the title Complete S3 generic/default method pattern for all modif_* and manip_* functions Implement S3 generics for network functions May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants