all_triplets# all_triplets(G)[source]# Returns a generator of all possible sets of 3 nodes in a DiGraph. Parameters: GdigraphA NetworkX DiGraph Returns: tripletsgenerator of 3-tuplesGenerator of tuples of 3 nodes