dgl.function.e_sub_v

dgl.function.e_sub_v(lhs_field, rhs_field, out)

Builtin message function that computes message by performing binary operation sub between edge feature and dst feature.

Parameters:
  • e (str) – The edge feature field.
  • v (str) – The dst feature field.
  • out (str) – The output message field.

Examples

>>> import dgl
>>> message_func = dgl.function.e_sub_v('h', 'h', 'm')