I have difficulties to answer at that question:
Let $X$ be a Hausdorff and compact topological space, and let $Y$ be a topological space. Let $f:X→Y$ be such that $G(f) = \{(x,f(x))|x∈X\} $ is a compact subset of $X \times Y$. Show that f is continuous.
I tried using the restrictions of the projections to $G(f)$, but I am block. I don't know how to use the Hausdorff condition in such a problem!
You are on the right track. What you want is that the projection map from the graph to $X$ is a homeomorphism. The relevant theorem is that a continuous bijection from a (quasi-)compact space to a Hausdorff space is a homeomorphism.