multi Int Gradient Cast
For each ID in sources, propagates data from that source using a fast-repair integer gradient, and collects the results in a map from source ID to propagated value.
Delegates to intGradientCast, which uses a default distance of 0 to Int.MAX_VALUE, the hop-count metric (hops()), and non-overflowing addition for distance accumulation. If a source is unreachable or there are no neighbors, the local value is used.
Return
A Map<ID, Value> mapping each source ID to its propagated value at this device.
Parameters
The type used for device identifiers.
The type of data being propagated.
Collection of device IDs to use as sources.
The local data value or default if a source path is not found.
A Field<ID, Int> providing the hop-count metric to each neighbor. Defaults to hops().
Maximum allowed hops before discarding a path. Defaults to Int.MAX_VALUE.
Function to update neighbor data on each hop. Receives the neighbor’s distance from the source, the hop increment (always 1), and the neighbor’s data. Defaults to the identity function.