all_triads#

all_triads(G)[source]#

A generator of all possible triads in G.

Parameters:
Gdigraph

A NetworkX DiGraph

Returns:
all_triadsgenerator of DiGraphs

Generator of triads (order-3 DiGraphs)