Skip to content

Conversation

@dcoudert
Copy link
Contributor

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

📝 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

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

@cxzhong
Copy link
Contributor

cxzhong commented Nov 19, 2025

LGTM. I think it is better to add a doctest to generate a immutable graph successfully

@dcoudert
Copy link
Contributor Author

Thank you for the review.

Should I add a doctest per method ? My main concern is that doctesting this module is already long, so adding doctests to show that we can generate immutable graphs might make it even longer.

@cxzhong
Copy link
Contributor

cxzhong commented Nov 19, 2025

Thank you for the review.

Should I add a doctest per method ? My main concern is that doctesting this module is already long, so adding doctests to show that we can generate immutable graphs might make it even longer.

Just add one, to show that we can generate a graph which is immutable indeed. and for copy method. we need to show the immutable graph generated by copy method is also immutable.

@dcoudert
Copy link
Contributor Author

Let me know if this is what you expected.

@cxzhong
Copy link
Contributor

cxzhong commented Nov 19, 2025

Thank you very much

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 20, 2025
sagemathgh-40740: add parameter immutable to distance regular graph generators (part 1)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in
`src/sage/graphs/generators/ditance_regular.pyx`.


### 📝 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#40740
Reported by: David Coudert
Reviewer(s): Chenxin Zhong
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 21, 2025
sagemathgh-40740: add parameter immutable to distance regular graph generators (part 1)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in
`src/sage/graphs/generators/ditance_regular.pyx`.


### 📝 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#40740
Reported by: David Coudert
Reviewer(s): Chenxin Zhong
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 26, 2025
sagemathgh-40740: add parameter immutable to distance regular graph generators (part 1)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in
`src/sage/graphs/generators/ditance_regular.pyx`.


### 📝 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#40740
Reported by: David Coudert
Reviewer(s): Chenxin Zhong
vbraun pushed a commit to vbraun/sage that referenced this pull request Dec 1, 2025
sagemathgh-40740: add parameter immutable to distance regular graph generators (part 1)
    
Following discussions in sagemath#39177, we add the option to return immutable
graphs to some generators in
`src/sage/graphs/generators/ditance_regular.pyx`.


### 📝 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#40740
Reported by: David Coudert
Reviewer(s): Chenxin Zhong
@vbraun vbraun merged commit 287f8d2 into sagemath:develop Dec 2, 2025
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