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

adjacency set #183

Closed
ozeasx opened this issue Jul 10, 2024 · 2 comments
Closed

adjacency set #183

ozeasx opened this issue Jul 10, 2024 · 2 comments

Comments

@ozeasx
Copy link

ozeasx commented Jul 10, 2024

Would it be possible to implement an adjacency set using khash lib? That is, a hash map of sets.

@ozeasx
Copy link
Author

ozeasx commented Jul 10, 2024

I tried this and it seems to work. Is this correct though?

KHASH_SET_INIT_INT(set)
KHASH_INIT(map, int, khash_t(set)*, 1, kh_int_hash_func, kh_int_hash_equal)

@ozeasx
Copy link
Author

ozeasx commented Jul 23, 2024

I'm going to close this issue since the proposed solution works.

@ozeasx ozeasx closed this as completed Jul 23, 2024
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

1 participant