all_triplets
Returns a generator of all possible sets of 3 nodes in a DiGraph.
G (digraph) – A NetworkX DiGraph
triplets – Generator of tuples of 3 nodes
generator of 3-tuples