Triads

Functions for analyzing triads of a graph.

triadic_census(G[, nodelist])

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.

is_triad(G)

Returns True if the graph G is a triad, else False.

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.