Skip to content

feat: add conversion from v to edge list#25

Merged
Neclow merged 3 commits intosbhattlab:mainfrom
Neclow:edges
May 13, 2025
Merged

feat: add conversion from v to edge list#25
Neclow merged 3 commits intosbhattlab:mainfrom
Neclow:edges

Conversation

@Neclow
Copy link
Collaborator

@Neclow Neclow commented May 12, 2025

No description provided.

@Neclow Neclow requested a review from Copilot May 12, 2025 14:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Neclow Neclow requested a review from Copilot May 13, 2025 06:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for converting between phylo2vec vectors and edge lists by introducing new functions in both Rust and Python.

  • New Rust functions get_edges and from_edges are implemented in the core ops module.
  • Python wrappers and integration in init.py have been added for the new functionality.
  • Additional tests have been added in the Rust module to verify the edge list conversion.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
py-phylo2vec/src/lib.rs Added Python-exposed functions get_edges and from_edges
py-phylo2vec/phylo2vec/base/edges.py Introduced Python conversion methods from_edges and to_edges
py-phylo2vec/phylo2vec/init.py Updated module exports to include new edge conversion functions
phylo2vec/src/tree_vec/ops/vector.rs Added get_edges_from_pairs, get_edges, and from_edges functions
phylo2vec/src/tree_vec/ops/mod.rs Integrated new functions into the ops module and added tests
phylo2vec/src/tree_vec/mod.rs Added method get_edges on TreeVec and new tests for edge conversion

Neclow and others added 2 commits May 13, 2025 08:11
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Neclow Neclow merged commit f6f5cbe into sbhattlab:main May 13, 2025
7 checks passed
@Neclow Neclow deleted the edges branch May 14, 2025 10:11
@Neclow Neclow restored the edges branch May 14, 2025 10:11
@Neclow Neclow deleted the edges branch October 16, 2025 12:37
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