aryagraph.algorithms.traversal.ancestors#
- aryagraph.algorithms.traversal.ancestors(g: Graph, node: Hashable) set[Hashable][source]#
Every node from which node is reachable, excluding node itself.
For an undirected graph this equals
descendants().
Every node from which node is reachable, excluding node itself.
For an undirected graph this equals descendants().