Skip to content

LineGraph improvements #10212

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RashwanA
Copy link

This PR improves the efficiency of the LineGraph transformation by replacing several for-loops with vectorized operations. These changes significantly speed up the computation, especially for larger graphs.

It also resolves the issue described in issue described in #10014, where undirected graphs with self-loops were not handled correctly.

The documentation for LineGraph has also been updated:

  • It now reflects the fix for self-connected undirected graphs.
  • It clarifies that the output graph does not contain self-loops, addressing a previous ambiguity in the description.

@RashwanA RashwanA requested a review from wsad1 as a code owner April 20, 2025 19:08
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.

1 participant