SharedMemoryDGLGraph.apply_nodes(func='default', v='__ALL__', inplace=True)[source]

Apply the function on the nodes to update their features.

If None is provided for func, nothing will happen.

In the graph store, all updates are written inplace.

  • func (callable or None, optional) – Apply function on the nodes. The function should be a Node UDF.

  • v (int, iterable of int, tensor, optional) – The node (ids) on which to apply func. The default value is all the nodes.

  • inplace (bool, optional) – The value is always True.