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

TypeError: Population must be a sequence. #41

Open
gloriadesideri opened this issue Sep 24, 2024 · 1 comment
Open

TypeError: Population must be a sequence. #41

gloriadesideri opened this issue Sep 24, 2024 · 1 comment

Comments

@gloriadesideri
Copy link

When running the code with a non-bipartite graph I have encountered this error for line 81 of the data_preprocessing.py file.
This can be solved by replacing the line with
new_test_node_set = set(random.sample(sorted(test_node_set), int(0.1 * n_total_unique_nodes)))
Hope this helps

@ElmansouriData
Copy link

ElmansouriData commented Oct 6, 2024

doses the code Works for You ?

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

2 participants