cleaned up scalable graph function sample

replaced lots of math with formula nodes
cleanup