This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
[BUG] Experimental.Traversals.topological_sort not working for non-connected sub-graphs #1565
Labels
bug
confirmed bug producing incorrect results
Description of bug
The
topological_sort
inLightGraphs.Experimental.Traversals
is not working when non-connected sub-graphs exist in a graph, i.e., graph consists of multiple non-connected graphs.How to reproduce
Expected behavior
topological_sort_by_dfs
is correct. Intopological_sort
nodes are probably traversed multiple times.Actual behavior
See above.
Code demonstrating bug
See reproduction.
Version information
LightGraphs v1.3.5
Additional context
Hey, I'm aware that this happens in code that is experimental but I think the bug is worth reporting.
BTW, i really like your package :) Thanks a lot for your great work :)
The text was updated successfully, but these errors were encountered: