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

Add unit tests for NetworkXStorage #24

Conversation

NumberChiffre
Copy link
Collaborator

@NumberChiffre NumberChiffre commented Sep 5, 2024

Description

This PR is to add unit tests strictly for NetworkXStorage data class, as well as some minor adjustments.

Some details to keep in mind:

  • Self-loop and parallel edges are enabled.
  • Community schema has default hyperparameters not configurable by users.
  • Only a single level for the community schema right after Leiden clustering because the Leiden algorithm is creating a single-level clustering (overwriting any previous multi-level clustering data that might have existed).

Updates

  • Add handling of non-existent node for node and edge degree.
  • Add unit tests.

@NumberChiffre NumberChiffre marked this pull request as ready for review September 5, 2024 05:15
@gusye1234 gusye1234 merged commit e5ec32b into gusye1234:main Sep 5, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants