dflow.func validates funcs and graph