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

Benchmark counting triangles in a graph #421

Merged
merged 5 commits into from
May 3, 2021

Conversation

epatters
Copy link
Member

@epatters epatters commented May 2, 2021

Benchmark counting triangles in a graph via

  • C-set homomorphism search based on backtracking search
  • conjunctive query using FinSet limits

The third commit gives a 10-20x speed improvement to the homomorphism search method.

Both methods are much slower than LightGraph's dedicated procedure for counting triangles. That is not surprising given the big difference in generality between the algorithms. Still, I think that large performance improvements are on the table, particularly for the CSP algorithm which I suspect is much slower than it should be.

@epatters epatters changed the title Benchmark counting triangles in a graph via homomorphism search Benchmark counting triangles in a graph May 3, 2021
@epatters epatters merged commit 3fc4ccf into AlgebraicJulia:master May 3, 2021
@epatters epatters deleted the benchmark-graph-homs branch May 3, 2021 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant