-
-
Notifications
You must be signed in to change notification settings - Fork 709
add parameter immutable to distance regular graph generators (part 1) #40740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add parameter immutable to distance regular graph generators (part 1) #40740
Conversation
|
Documentation preview for this PR (built with commit f75b10c; changes) is ready! 🎉 |
|
LGTM. I think it is better to add a doctest to generate a immutable graph successfully |
|
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. |
|
Let me know if this is what you expected. |
|
Thank you very much |
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
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
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
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
Following discussions in #39177, we add the option to return immutable graphs to some generators in
src/sage/graphs/generators/ditance_regular.pyx.📝 Checklist
⌛ Dependencies