is_aperiodic
descendants
Enter search terms or a module, class or function name.
Return all nodes having a path to in G.
G : NetworkX DiGraph
source : node in G
ancestors : set()
The ancestors of source in G