updateVm function

Update V from a change-point network process