Returns a generator of all possible sets of 3 nodes in a DiGraph.
A NetworkX DiGraph
Generator of tuples of 3 nodes