is_triad

is_triad(G)[source]

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

Parameters
Ggraph

A NetworkX Graph

Returns
istriadboolean

Whether G is a valid triad