A field is a map of messages where the key is the ID of a node and T the associated value.
the type of the field.
The ID of the local node.
The value associated with the localId.
Transform the field into a map.
Exclude the local node from the field.
Get the value associated with the id. Raise an error if the id is not present in the field.
Reduce the elements of a field using the transform function.
Reduce the elements of a field starting with a initial value and a transform function.
Map the field using the transform function.
Get the maximum value of a field.
Get the minimum value of a field.
Operator to subtract a value to all the values of the field.
Subtract a field with other field. The two fields must be aligned, otherwise an error is thrown.
Operator to sum a value to all the values of the field.
Sum a field with other field. The two fields must be aligned, otherwise an error is thrown.
Reduce the elements of the field using the transform function.
Returns a map representing the field.