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
enumeration of minimal dominating sets #27424
Comments
comment:2
(work in progress) |
Commit: |
comment:3
just some comments
|
comment:4
I don't think it's a good idea to define new neighbor iterators in this file. Also, your method |
comment:5
Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Thanks for the comments. Currently I assume that the vertices of the input graph are sortable, in order for some procedure to have deterministic output, which is required for the correctness of the algorithm. The procedure removes vertices one by one in increasing order until a property is met. Is there a fast and easy way to sort the vertices in any case, for instance using some integer used internally to represent a vertex? Otherwise I could define an arbitrary order at the beginning, but that looks cumbersome. |
Author: Jean-Florent Raymond |
comment:9
method
Some parts can be simplified like: - for L in tree_search(H, plng, dom, i + 1):
- yield L
+ yield from tree_search(H, plng, dom, i + 1) I'm really not in favor of adding new vertex iterators methods. Instead, you could add parameter Now, concerning the sorting, and in view of your code, you could relabel your graph and use the mapping before returning the result. Then, you can sort integers safely if needed.
|
comment:10
If you want to, you could add the following sanity check:
or, taking a bit longer,
|
comment:11
Thanks! |
comment:12
Right, it's working in Cython, but not in Python 2, a pity :( |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
May be we should make a specific ticket for the neighbor iterators. If you agree, I can do it. |
comment:15
Indeed, I did not think of that. Thanks for offering! Feel free to do it. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:40
Moving tickets from the Sage 8.8 milestone that have been actively worked on in the last six months to the next release milestone (optimistically). |
comment:41
There is a merge conflict with last beta. |
comment:43
I can help solving the merge conflicts if needed |
Reviewer: David Coudert |
comment:44
I fixed the merge conflicts, applied the modifications proposed in #comment:39, and move all methods related to domination to the file Do you agree with these changes ? New commits:
|
Changed branch from u/gh-jfraymond/enumeration_of_minimal_dominating_sets to public/graphs/27424_domination |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:47
Thanks for the changes! (And sorry for the late relpy!) |
comment:48
LGTM. |
comment:49
9.0 is out |
Changed branch from public/graphs/27424_domination to |
Goal: implement an algorithm enumerating the minimal dominating sets of a graph as described in https://arxiv.org/abs/1810.00789 .
Component: graph theory
Keywords: enumeration, dominating set
Author: Jean-Florent Raymond
Branch/Commit:
054a7bd
Reviewer: David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/27424
The text was updated successfully, but these errors were encountered: