Skip to content

add parameter immutable to graph generators in smallgraphs.py (part 13)#41706

Merged
vbraun merged 1 commit intosagemath:developfrom
dcoudert:graphs/immutable_in_smallgraph_13
Mar 22, 2026
Merged

add parameter immutable to graph generators in smallgraphs.py (part 13)#41706
vbraun merged 1 commit intosagemath:developfrom
dcoudert:graphs/immutable_in_smallgraph_13

Conversation

@dcoudert
Copy link
Copy Markdown
Collaborator

Following discussions in #39177, and now that #41573, #41597 and #41599 have been merged, we add the option to return immutable graphs to the remaining generators in src/sage/graphs/generators/smallgraphs.py.

  • DesarguesGraph, DurerGraph, MoebiusKantorGraph, NauruGraph, MathonStronglyRegularGraph

This concludes the work for smallgraphs.py.

The next step will be to add in pytest a generic test on all graph generators (see #41501 (comment)).

📝 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

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

Copy link
Copy Markdown
Contributor

@mantepse mantepse left a comment

Choose a reason for hiding this comment

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

LGTM

vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 28, 2026
sagemathgh-41706: add parameter immutable to graph generators in `smallgraphs.py` (part 13)
    
Following discussions in sagemath#39177, and now that sagemath#41573, sagemath#41597 and sagemath#41599
have been merged, we add the option to return immutable graphs to the
remaining generators in `src/sage/graphs/generators/smallgraphs.py`.
- `DesarguesGraph`, `DurerGraph`, `MoebiusKantorGraph`, `NauruGraph`,
`MathonStronglyRegularGraph`

This concludes the work for `smallgraphs.py`.

The next step will be to add in `pytest` a generic test on all graph
generators (see
sagemath#41501 (comment)).

### 📝 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#41706
Reported by: David Coudert
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 6, 2026
sagemathgh-41706: add parameter immutable to graph generators in `smallgraphs.py` (part 13)
    
Following discussions in sagemath#39177, and now that sagemath#41573, sagemath#41597 and sagemath#41599
have been merged, we add the option to return immutable graphs to the
remaining generators in `src/sage/graphs/generators/smallgraphs.py`.
- `DesarguesGraph`, `DurerGraph`, `MoebiusKantorGraph`, `NauruGraph`,
`MathonStronglyRegularGraph`

This concludes the work for `smallgraphs.py`.

The next step will be to add in `pytest` a generic test on all graph
generators (see
sagemath#41501 (comment)).

### 📝 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#41706
Reported by: David Coudert
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 15, 2026
sagemathgh-41706: add parameter immutable to graph generators in `smallgraphs.py` (part 13)
    
Following discussions in sagemath#39177, and now that sagemath#41573, sagemath#41597 and sagemath#41599
have been merged, we add the option to return immutable graphs to the
remaining generators in `src/sage/graphs/generators/smallgraphs.py`.
- `DesarguesGraph`, `DurerGraph`, `MoebiusKantorGraph`, `NauruGraph`,
`MathonStronglyRegularGraph`

This concludes the work for `smallgraphs.py`.

The next step will be to add in `pytest` a generic test on all graph
generators (see
sagemath#41501 (comment)).

### 📝 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#41706
Reported by: David Coudert
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 18, 2026
sagemathgh-41706: add parameter immutable to graph generators in `smallgraphs.py` (part 13)
    
Following discussions in sagemath#39177, and now that sagemath#41573, sagemath#41597 and sagemath#41599
have been merged, we add the option to return immutable graphs to the
remaining generators in `src/sage/graphs/generators/smallgraphs.py`.
- `DesarguesGraph`, `DurerGraph`, `MoebiusKantorGraph`, `NauruGraph`,
`MathonStronglyRegularGraph`

This concludes the work for `smallgraphs.py`.

The next step will be to add in `pytest` a generic test on all graph
generators (see
sagemath#41501 (comment)).

### 📝 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#41706
Reported by: David Coudert
Reviewer(s): Martin Rubey
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 21, 2026
sagemathgh-41706: add parameter immutable to graph generators in `smallgraphs.py` (part 13)
    
Following discussions in sagemath#39177, and now that sagemath#41573, sagemath#41597 and sagemath#41599
have been merged, we add the option to return immutable graphs to the
remaining generators in `src/sage/graphs/generators/smallgraphs.py`.
- `DesarguesGraph`, `DurerGraph`, `MoebiusKantorGraph`, `NauruGraph`,
`MathonStronglyRegularGraph`

This concludes the work for `smallgraphs.py`.

The next step will be to add in `pytest` a generic test on all graph
generators (see
sagemath#41501 (comment)).

### 📝 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#41706
Reported by: David Coudert
Reviewer(s): Martin Rubey
@vbraun vbraun merged commit 38b5437 into sagemath:develop Mar 22, 2026
24 of 25 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