Prove that $f: A \to B$ is continuous iff its graph is compact where $A$ is compact and $A,B$ are metric spaces.
My attempt: I have already proved it. But somehow i am not satisfied with my proof. Implies part is Ok. But converse part i want to prove f is continuous by using $f(\overline C) \subset \overline{ f(C)}$.
For this i took $C\subset E$ arbitrary. Let $T=\{(x, f(x)):\, x \in C\}$, $F=\{(x, f(x)): x \in \overline{C}\}$. Now $\overline T$ is closed in graph(f), hece it is compact. I cant proceed further. Please give me hint.