NetworkX

Previous topic

ancestors

Next topic

topological_sort

descendants

static dag.descendants(G, source)

Return all nodes reachable from source in G.

Parameters :

G : NetworkX DiGraph

source : node in G

Returns :

des : set()

The descendants of source in G