[ADD] primary impl of function graphs