Skip to content

Add functions subgraph_edges and forest_cover_edge_sequence; refine similar_graph interface.#169

Merged
mtfishman merged 11 commits into
mainfrom
jd/subgraph_edges
May 14, 2026
Merged

Add functions subgraph_edges and forest_cover_edge_sequence; refine similar_graph interface.#169
mtfishman merged 11 commits into
mainfrom
jd/subgraph_edges

Conversation

@jack-dunham
Copy link
Copy Markdown
Contributor

@jack-dunham jack-dunham commented May 14, 2026

This PR does the following:

  1. removes the similar_graph methods that took edges as an argument (these were removed in DataGraphs.jl , but not in NamedGraphs.jl yet.),
  2. adds the subgraph_edges function.
  3. adds the forest_cover_edge_sequence function, that is currently sitting out-of-place in ITensorNetworksNext.jl, into NamedGraphs.GraphsExtensions.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

❌ Patch coverage is 61.53846% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.99%. Comparing base (d10c3ae) to head (d07aee6).

Files with missing lines Patch % Lines
src/lib/GraphsExtensions/src/trees_and_forests.jl 0.00% 11 Missing ⚠️
src/abstractnamedgraph.jl 64.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #169      +/-   ##
==========================================
- Coverage   79.67%   78.99%   -0.69%     
==========================================
  Files          55       55              
  Lines        2111     2099      -12     
==========================================
- Hits         1682     1658      -24     
- Misses        429      441      +12     
Flag Coverage Δ
docs 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jack-dunham jack-dunham marked this pull request as ready for review May 14, 2026 13:55
Comment thread src/abstractnamedgraph.jl Outdated
Comment thread src/abstractnamedgraph.jl Outdated
Comment thread src/abstractnamedgraph.jl Outdated
…st argument

Previously, used `promote_type`. This is to align more with existing
`Base.union` methods.
- Removed the need to copy in `similar_graph`
- Updated the inner constructor for `GenericNamedGraph`
- Removed two outer constructors.
@mtfishman mtfishman enabled auto-merge (squash) May 14, 2026 15:51
@mtfishman mtfishman merged commit 7284411 into main May 14, 2026
19 of 21 checks passed
@mtfishman mtfishman deleted the jd/subgraph_edges branch May 14, 2026 16:00
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