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

compute_graph_metrics - compute what we can without igraph #1982

Merged
merged 5 commits into from
Feb 29, 2024

Conversation

ADBond
Copy link
Contributor

@ADBond ADBond commented Feb 19, 2024

Type of PR

  • BUG
  • FEAT
  • MAINT
  • DOC

Is your Pull Request linked to an existing Issue or Pull Request?

With #1894 we use igraph to compute is_bridge. Currently if this package is unavailable, you cannot compute any metrics.

Give a brief description for the solution you have provided

This wraps the edge metrics method, and returns a dummy (metric-less) version of the edges table in cases where we have nothing to compute. This should be extensible to cases where we can compute some metrics without needing igraph.

This import failure is mocked for testing.

PR Checklist

  • Added documentation for changes
  • Added feature to example notebooks or tutorial (if appropriate)
  • Added tests (if appropriate)
  • Updated CHANGELOG.md (if appropriate)
  • Made changes based off the latest version of Splink
  • Run the linter

Copy link
Contributor

@zslade zslade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@ADBond ADBond merged commit 0ee5d82 into master Feb 29, 2024
@ADBond ADBond deleted the no-igraph-wrap branch February 29, 2024 14:48
@zslade zslade mentioned this pull request Mar 5, 2024
10 tasks
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.

None yet

3 participants