map_local function

Map a function over a graph representing the neighborhood of each node