intDistanceTo

inline fun <ID : Any> Aggregate<ID>.intDistanceTo(source: Boolean, crossinline metric: () -> Field<ID, Int> = { neighboring(1) }): Int

Compute the distance from the closest source, using Integers.

The distance between neighboring devices is computed using the metric function, and defaults to the hop distance.