relation and function all graphs