The algorithm reveals the frequency of triads in a network.