Skip to content
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

Finding wrong cliques (?) #9

Open
levnikmyskin opened this issue Oct 22, 2021 · 7 comments
Open

Finding wrong cliques (?) #9

levnikmyskin opened this issue Oct 22, 2021 · 7 comments

Comments

@levnikmyskin
Copy link
Contributor

Hi,
sorry to bother you guys again. I compiled your code and ran some tests on a toy network (you can find the .nde file and a screenshot at the end of this issue). However, I'm seeing weird outputs:

./build/text_ui -enumerator=sequential -system=clique -print test_g.nde

Output:

0 5 
5 6 7 
6 7 8 
1 2 
1 6 
2 7 8 
3 4 
3 8 
4 5 7 
Reading time: 0 ms
Setup time: 0 ms
Run time: 0 ms
Solutions found: 9
Computational tree size: 9
Solutions per ms: inf

As you can see, it says that 0-5 is a clique, but there is no edge between them. Am I doing something wrong?

test_g.nde:

9
0 3
1 4
2 2
3 3
4 5
5 4
6 4
7 1
8 2
0 1
0 4
0 8
1 2
1 4
1 5
2 3
3 4
3 6
4 5
4 6
5 6
6 7
8 5

test

@veluca93
Copy link
Owner

@Pronte can you confirm the NDE file is correct?

@Pronte
Copy link
Collaborator

Pronte commented Oct 22, 2021 via email

@veluca93
Copy link
Owner

The graph is permuted here

graph->Permute(DegeneracyOrder(*graph))
- I believe you can keep around a copy of the inverse permutation and then apply it here
return node.first;

@levnikmyskin
Copy link
Contributor Author

levnikmyskin commented Oct 23, 2021

Just FYI, I edited the code as suggested and it is indeed working as expected (for k-plexes, you need to edit diam2kplex.hpp as well though).

@veluca93
Copy link
Owner

Would you be willing to make a PR for that too? :)

@Pronte
Copy link
Collaborator

Pronte commented Oct 23, 2021 via email

@levnikmyskin
Copy link
Contributor Author

Opened the PR! Please check the code fits your standards, since my C++ is more than rusty

levnikmyskin added a commit to levnikmyskin/parallel_enum that referenced this issue Oct 23, 2021
levnikmyskin added a commit to levnikmyskin/parallel_enum that referenced this issue Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants