Skip to content

add parameter immutable to graph generators in families.py (part 5)#41593

Merged
vbraun merged 7 commits intosagemath:developfrom
dcoudert:graphs/immutable_in_families_5
Feb 25, 2026
Merged

add parameter immutable to graph generators in families.py (part 5)#41593
vbraun merged 7 commits intosagemath:developfrom
dcoudert:graphs/immutable_in_families_5

Conversation

@dcoudert
Copy link
Copy Markdown
Collaborator

@dcoudert dcoudert commented Feb 4, 2026

Following discussions in #39177, we add the option to return immutable graphs to some generators in src/sage/graphs/generators/families.py.

  • PasechnikGraph, SquaredSkewHadamardMatrixGraph, SwitchedSquaredSkewHadamardMatrixGraph, HanoiTowerGraph, line_graph_forbidden_subgraphs, p2_forbidden_minors

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 4, 2026

Documentation preview for this PR (built with commit 5c13ee1; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

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

ok

vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 16, 2026
sagemathgh-41593: add parameter immutable to graph generators in families.py (part 5)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in `src/sage/graphs/generators/families.py`.
- `PasechnikGraph`, `SquaredSkewHadamardMatrixGraph`,
`SwitchedSquaredSkewHadamardMatrixGraph`, `HanoiTowerGraph`,
`line_graph_forbidden_subgraphs`, `p2_forbidden_minors`


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#41593
Reported by: David Coudert
Reviewer(s): Frédéric Chapoton
vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 20, 2026
sagemathgh-41593: add parameter immutable to graph generators in families.py (part 5)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in `src/sage/graphs/generators/families.py`.
- `PasechnikGraph`, `SquaredSkewHadamardMatrixGraph`,
`SwitchedSquaredSkewHadamardMatrixGraph`, `HanoiTowerGraph`,
`line_graph_forbidden_subgraphs`, `p2_forbidden_minors`


### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#41593
Reported by: David Coudert
Reviewer(s): Frédéric Chapoton
@vbraun vbraun merged commit 9c00590 into sagemath:develop Feb 25, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants