a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
998 stars 125 forks source link

Fix nx -> pyg conversion with no edges #334

Closed anton-bushuiev closed 10 months ago

anton-bushuiev commented 10 months ago

Reference Issues/PRs

Hi, @a-r-j ! I have spotted a minor corner case bug. Currently nx -> pyg conversion fails on index out range error when input graph has no edges.

What does this implement/fix? Explain your changes

What testing did you do to verify the changes in this PR?

Pull Request Checklist

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

a-r-j commented 10 months ago

Thanks for the contribution!