Frequency of triad formations in a network (A->B, A->C, B->C)