Skip to content

TypeError: Population must be a sequence. #41

@gloriadesideri

Description

@gloriadesideri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions