#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

networkx.algorithms.triads.all_triads

all_triads(G)[source]

A generator of all possible triads in G.

Parameters

G (digraph) – A NetworkX DiGraph

Returns

all_triads – Generator of triads (order-3 DiGraphs)

Return type

generator of DiGraphs