Skip to content

Conversation

@FlorentinD
Copy link
Collaborator

No description provided.

@FlorentinD FlorentinD requested review from adamnsch and Copilot July 25, 2025 11:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the from_gds function where graphs with heterogeneous relationship types having different properties would fail. The fix changes the relationship data fetching logic to handle multiple relationship types separately and updates the data structure to use a list of DataFrames instead of a single DataFrame.

  • Modified relationship fetching to process each relationship type individually
  • Updated function signature from _fetch_rel_df to _fetch_rel_dfs returning a list of DataFrames
  • Updated test cases to reflect the new heterogeneous relationship handling

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
python-wrapper/src/neo4j_viz/gds.py Refactored relationship fetching to handle multiple relationship types with different properties
python-wrapper/tests/test_gds.py Updated test data structures and assertions to match the new heterogeneous relationship handling
changelog.md Added entry documenting the bug fix

@FlorentinD FlorentinD merged commit 941bf15 into main Aug 1, 2025
10 checks 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