This is the analogue of closed graph theorem for compact space
Suppose that $X$ and $K$ are metric spaces, that $K$ is compact, and that the graph of $f: X \rightarrow K$ is a closed subset of $X \times K$. Prove that $f$ is continuous.
Because metric space is first countable, all we need is to prove that if $x = \lim_{n \rightarrow \infty} x_{n}$, then $f(x) = \lim_{n \rightarrow \infty} f(x_{n})$. Suppose $x = \lim_{n \rightarrow \infty} x_{n}$, then because $K$ is compact, sequence $\{f(x_{n})\}$ has a subsequence $\{f(x_{n_{i}})\}$ converge. Because the graph of $f$ is closed, we must have $\lim_{n \rightarrow \infty}\{f(x_{n_{i}})\} = f(x)$. All we need to prove now is $\{f(x_{n})\}$ converge to $f(x)$, but I can't prove that. Can any one help me. I really appreciate. Thanks