In the mathematics of infinite graphs, an end of an undirected graph represents, intuitively, a direction in which the graph extends to infinity. Ends may be formalized mathematically as equivalence classes of infinite paths, as havens describing strategies for pursuit–evasion games on the graph, or (in the case of locally finite graphs) as topological ends of topological spaces associated with the graph. Ends of graphs may be used (via Cayley graphs) to define ends of finitely generated groups. Finitely generated infinite groups have one, two, or infinitely many ends, and the Stallings theorem about ends of groups provides a decomposition for groups with more than one end.
Definition and characterization Ends of graphs were defined by Rudolf Halin (1964) in terms of equivalence classes of infinite paths. A ray in an infinite graph is a semi-infinite simple path; that is, it is an infinite sequence of vertices v0,v1,v2,… in which each vertex appears at most once in the sequence and each two consecutive vertices in the sequence are the two endpoints of an edge in the graph. According to Halin's definition, two rays r0 and r1 are equivalent if there is a ray r2 (which may equal one of the two given rays) that contains infinitely many of the vertices in each of r0 and r1. This is an equivalence relation: each ray is equivalent to itself, the definition is symmetric with regard to the ordering of the two rays, and it can be shown to be transitive. Therefore, it partitions the set of all rays into equivalence classes, and Halin defined an end as one of these equivalence classes. An alternative definition of the same equivalence relation has also been used: two rays r0 and r1 are equivalent if there is no finite set X of vertices that separates infinitely many vertices of r0 from infinitely many vertices of r1. This is equivalent to Halin's definition: if the ray r2 from Halin's definition exists, then any separator must contain infinitely many points of r2 and therefore cannot be finite, and conversely if r2 does not exist then a path that alternates between r0 and r1 until no more alternations are possible must form the desired finite separator. Ends also have a more concrete characterization in terms of havens, functions that describe evasion strategies for pursuit–evasion games on a graph G. In the game in question, a robber is trying to evade a set of policemen by moving from vertex to vertex along the edges of G. The police have helicopters and therefore do not need to follow the edges; however the robber can see the police coming and can choose where to move next before the helicopters land. A haven is a function β that maps each set X of police locations to one of the connected components of the subgraph formed by deleting X; a robber can evade the police by moving in each round of the game to a vertex within this component. Havens must satisfy a consistency property (corresponding to the requirement that the robber cannot move through vertices on which police have already landed): if X is a subset of Y, and both X and Y are valid sets of locations for the given set of police, then β(X) must be a superset of β(Y). A haven has order k if the collection of police locations for which it provides an escape strategy includes all subsets of fewer than k vertices in the graph; in particular, it has order ℵ0 (the smallest aleph number) if it maps every finite subset X of vertices to a component of G∖X. Every ray in G corresponds to a haven of order ℵ0, namely, the function β; that maps every finite set X to the unique component of G∖X that contains infinitely many vertices of the ray. Conversely, every haven of order ℵ0 can be defined in this way by a ray. Two rays are equivalent if and only if they define the same haven, so the ends of a graph are in one-to-one correspondence with its havens of order ℵ0.
Examples
If the infinite graph G is itself a ray, then it has infinitely many ray subgraphs, one starting from each vertex of G. However, all of these rays are equivalent to each other, so G only has one end. If G is a forest (that is, a graph with no finite cycles), then the intersection of any two rays is either a finite path or a ray; two rays are equivalent if their intersection is a ray. If a base vertex is chosen in each connected component of G, then each end of G contains a unique ray starting from one of the base vertices, so the ends may be placed in one-to-one correspondence with these canonical rays. Every countable graph G has a spanning forest with the same set of ends as G. However, there exist uncountably infinite graphs with only one end in which every spanning tree has infinitely many ends. If G is an infinite grid graph, then it has many rays, and arbitrarily large sets of vertex-disjoint rays. However, it has only one end. This may be seen most easily using the characterization of ends in terms of havens: the removal of any finite set of vertices leaves exactly one infinite connected component, so there is only one haven (the one that maps each finite set to the unique infinite connected component).
Relation to topological ends In point-set topology, there is a concept of an end that is similar to, but not quite the same as, the concept of an end in graph theory, dating back much earlier to Freudenthal (1931). If a topological space can be covered by a nested sequence of compact sets κ0⊂κ1⊂κ2…, then an end of the space is a sequence of components U0⊃U1⊃U2… of the complements of the compact sets. This definition does not depend on the choice of the compact sets: the ends defined by one such choice may be placed in one-to-one correspondence with the ends defined by any other choice. An infinite graph G may be made into a topological space in two different but related ways:
… excerpt ends here. Continue reading the full article.

