#

Note

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

#

TriadsΒΆ

Functions for analyzing triads of a graph.

triadic_census(G)

Determines the triadic census of a directed graph.

random_triad(G)

Returns a random triad from a directed graph.

triads_by_type(G)

Returns a list of all triads for each triad type in a directed graph.

triad_type(G)

Returns the sociological triad type for a triad.

all_triads(G)

A generator of all possible triads in G.

all_triplets(G)

Returns a generator of all possible sets of 3 nodes in a DiGraph.