Table of Contents
Graph()
DiGraph()
MultiGraph()
MultiDiGraph()
Auto-generated API
networkx.algorithms.
ancestors
Return all nodes having a path to source in G.
G : NetworkX DiGraph
source : node in G
ancestors : set()
The ancestors of source in G