Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
random_triad
Returns a random triad from a directed graph.
G (digraph) – A NetworkX DiGraph
G2 – A randomly selected triad (order-3 NetworkX DiGraph)
subgraph