Add updateNodes / updatePath

Remove special behavior for function labels in setNode and setEdge. Use
updateNodes / updatePath instead - these already take an update
function.