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
Error in is_clique for graphs with multiple edges #25696
Comments
comment:1
There might be smarter way to do that, but at least it fix the issue New commits:
|
Commit: |
Branch: u/dcoudert/25696_is_clique |
comment:3
I'm not sure we have the right/common definition of cliques here. Docs say: A clique is a set of vertices such that there is an edge between any two vertices. I would say: A clique is a set of vertices such that there is a single edge between any two vertices. For example, according to this paper here, A clique in a graph or multigraph G is a simple complete subgraph of G. |
Changed keywords from none to days94 |
comment:5
What we expect certainly depends on the context. One solution could be to add a parameter |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
I added parameter The last commit exhibit a potential change of behavior when asking for an undirected clique inside a directed graph. I consider that we can have only 1 arc between a given pair of nodes to get an induced clique. Let me know if you agree. |
This comment has been minimized.
This comment has been minimized.
comment:10
The logic seems to be clear. However,
Also the indentation in |
comment:11
Also
|
comment:13
Good catch ! This is a side effect of Do you think I should open a ticket to raise an error in |
comment:14
Replying to @dcoudert:
To me it sounds logical. I expect that
gives similar output (they do not), and actually I have changed the output of
to be an error message, not However, if you do that, then this ticket should be postponed until that is ready. |
comment:15
I prefer to have this ticket fixed now since it impacts other methods. For instance, We can deal with the |
comment:16
Replying to @dcoudert:
OK. I'll try to review this in a day or two. |
Reviewer: Jori Mäntysalo |
comment:17
Seems to be OK. ("Trivially complicated code", but there is no other way as there are so many combinations of parameters.) |
comment:18
Thank you. |
comment:19
rc for 8.3 is already out. |
Changed branch from u/dcoudert/25696_is_clique to |
The following graph is not a clique
CC: @pelegm @jm58660 @fchapoton
Component: graph theory
Keywords: days94
Author: David Coudert
Branch/Commit:
50df10e
Reviewer: Jori Mäntysalo
Issue created by migration from https://trac.sagemath.org/ticket/25696
The text was updated successfully, but these errors were encountered: