I know this question seems to have been asked hundreds of times, but I don't really see how any of the existing answers address my concern, so I'm hoping that maybe someone here might be able to clarify. Exercise 6, chapter 4 Rudin's "Principles of Mathematical Analysis"
Suppose E is compact, and prove that f is continuous on E if and only if its graph is compact.
So, if I suppose that $f|X\rightarrow Y$, then the graph of $f$ is $G_f=\{x,f(x)|x\in X\}$. This in turn is a subset of $X\times Y$- no problem. However, in order to reason on whether $G_f$ is compact, don't I need to assume some topology on $X\times Y$? Don't I necessarily sacrifice generality by making such an assumption?
So first, am I correct in thinking that assuming a topology on $X\times Y$ constitutes a loss of generality, and second, is there a way to approach this problem without making such an assumption (i.e., using the case of a general topology, rather than a specific one such as the product topology).