random_triad# random_triad(G)[source]# Returns a random triad from a directed graph. Parameters: GdigraphA NetworkX DiGraph Returns: G2subgraphA randomly selected triad (order-3 NetworkX DiGraph)