functional graph