findParents

inline fun <ID : Any, Potential : Comparable<Potential>> Aggregate<ID>.findParents(potential: Field<ID, Potential>, crossinline isParent: Predicate<FieldEntry<ID, Potential>> = { potential.local.value > it.value }): Set<ID>
inline fun <ID : Any, Potential : Comparable<Potential>> Aggregate<ID>.findParents(potential: Potential, crossinline isParent: Predicate<FieldEntry<ID, Potential>> = { potential > it.value }): Set<ID>

Find the parents of the current device along a potential field. Only neighbors that satisfy isParent are considered as parents. By default, isParent returns all devices with a potential smaller than the local one.