ancestors
Returns all nodes having a path to source in G.
source
G
The ancestors of source in G
set()