-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Return connected subgraphs with exactly k vertices #35864
Conversation
In response to issue sagemath#35857 modified connected_subgraph_iterator to just return the subgraphs of order k. - Added a parameter 'exactly_k
@@ -783,6 +784,10 @@ def connected_subgraph_iterator(G, k=None, bint vertices_only=False, | |||
connected sub(di)graph only or also non-induced sub(di)graphs. | |||
This parameter can be set to ``False`` for simple (di)graphs only. | |||
|
|||
- ``exactly_k`` -- boolean (default: ``False``); ``True`` if we only | |||
return graphs of order ``k``, ``False`` if we return graphs of order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- return graphs of order ``k``, ``False`` if we return graphs of order
- at most ``k``.
+ return graphs of order `k`, ``False`` if we return graphs of order
+ at most `k`.
Can you modify the PR description to link it to the issue. This way, when this PR will be closed, the issue will be closed as well.
to something like Fixes #35857. This PR adds a parameter to Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Documentation preview for this PR (built with commit bbcfe17; changes) is ready! 🎉 |
Fixes #35857 -- This PR adds a parameter to
connected_subgraph_iterator
so it returns only the subgraphs of order k.📚 Description
📝 Checklist
⌛ Dependencies