If a graph passes the horizontal line test, but not the vertical line test, is it still a function?

This applies for vice-versa too!

Thank You if anyone responds!