find_contacts#

find_contacts(p1, p2, inds)[source]#

Variation on Network.find_contacts() that avoids sorting.

A set is returned here rather than a sorted array so that custom tracing interventions can efficiently add extra people. For a version with sorting by default, see Network.find_contacts(). Indices must be an int64 array since this is what’s returned by true() etc. functions by default.