graphlib icon indicating copy to clipboard operation
graphlib copied to clipboard

Provide descendant() and anscestors() functions

Open voxoid0 opened this issue 1 year ago • 1 comments

The library really should provide descendants() and ancestors() functions (recursive versions of predecessors() and successors()) out of the box, like python's networkx lib does. This was mentioned before in issue #34 .

voxoid0 avatar Oct 04 '24 15:10 voxoid0

Hey mate, I saw that the concern in issue #34 was the recursive versions hit stack-overflow issues in JS while imperative versions didn't.

Why do you want descendants() and ancestors() despite this? What am I missing? 😅

cogell avatar Dec 23 '24 15:12 cogell