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

Corner Case Handling for Self-Loops and Single-Node Graphs #130

Open
ak47mrj opened this issue Sep 9, 2024 · 0 comments
Open

Corner Case Handling for Self-Loops and Single-Node Graphs #130

ak47mrj opened this issue Sep 9, 2024 · 0 comments
Assignees

Comments

@ak47mrj
Copy link
Contributor

ak47mrj commented Sep 9, 2024

I encountered two corner cases that result in incorrect behavior when reading graphs with self-loops or single-node graphs. These issues may affect downstream tasks that rely on accurate graph structure and attributes.

  1. Self-Loop Weight Doubling: When reading a graph with a self-loop (an edge where src == dst), the weight of the self-loop is incorrectly doubled. For example, if the original edge weight is 1, the weight returns it as 2.
  2. Incorrect n_edges Attribute for Single-Node Graph with Self-Loop: When reading a graph that contains only a single node with a self-loop, the n_edges attribute is incorrectly set to 0.
@alvaradoo alvaradoo self-assigned this Oct 21, 2024
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

No branches or pull requests

2 participants