dgl.contrib.graph_store.SharedMemoryDGLGraph.apply_edges

SharedMemoryDGLGraph.apply_edges(func='default', edges='__ALL__', inplace=True)[source]

Apply the function on the edges to update their features.

If None is provided for func, nothing will happen.

In the graph store, all updates are written inplace.

Parameters:
  • func (callable, optional) – Apply function on the edge. The function should be an Edge UDF.
  • edges (valid edges type, optional) – Edges on which to apply func. See send() for valid edges type. Default is all the edges.
  • inplace (bool, optional) – The value is always True.