graphs functional