 Such neighborhoods represent the neighborhoods of the corresponding point at infinity in the end compactification (this "compactification" is not always compact; the topological space "X" has to be connected and locally connected).The definition of ends given above applies only to spaces "X" that possess an exhaustion by compact sets (that is, "X" must be hemicompact).However, it can be generalized as follows