Skip to content

Handle self-loops in all_simple_paths#1619

Open
IvanIsCoding wants to merge 1 commit into
Qiskit:mainfrom
IvanIsCoding:fix-all-simple-paths
Open

Handle self-loops in all_simple_paths#1619
IvanIsCoding wants to merge 1 commit into
Qiskit:mainfrom
IvanIsCoding:fix-all-simple-paths

Conversation

@IvanIsCoding

Copy link
Copy Markdown
Collaborator

Closes #1617

This was a discrepancy introduced in #1520. For the record, NetworkX returns ["a"] for a self-loop which is slightly different than ["a", "a"] but I think the old behaviour is fine.

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.

regression: all_simple_paths returns empty list when source == target (self-loop)

2 participants