graph homology
In algebraic topology and graph theory, graph homology describes the homology groups of a graph, where the graph is considered as a topological space. It formalizes the idea of the number of "holes" in the graph. It is a special case of a simplicial homology, as a graph is a special case of a simplicial complex. Since a finite graph is a 1-complex (i.e., its 'faces' are the vertices – which are 0-dimensional, and the edges – which are 1-dimensional), the only non-trivial homology groups are the 0th group and the 1st group.{{citation |last=Sunada |first=Toshikazu |title=Homology Groups of Graphs |date=2013 |work=Topological Crystallography: With a View Towards Discrete Geometric Analysis |pages=37–51 |editor-last=Sunada |editor-first=Toshikazu |series=Surveys and Tutorials in the Applied Mathematical Sciences |place=Tokyo |publisher=Springer Japan |language=en |doi=10.1007/978-4-431-54177-6_4 |isbn=978-4-431-54177-6 }}
1st homology group
The general formula for the 1st homology group of a topological space X is: The example below explains these symbols and concepts in full detail on a graph.
= Example =
Let X be a directed graph with 3 vertices {{mset|x, y, z}} and 4 edges {{mset|a: x → y, b: y → z, c: z → x, d: z → x}}. It has several cycles:
- One cycle is represented by the loop a+b+c. Here, the plus sign represents that all edges are travelled at the same direction. Since the addition operation is commutative, the + sign represents that the loops a + b + c, b + c + a, and c + a + b, all represent the same cycle.
- A second cycle is represented by the loop a + b + d.
- A third cycle is represented by the loop c − d. Here, the minus sign represents that the edge d is travelled backwards.
If we cut the plane along the loop a + b + d, and then cut at c and "glue" at d, we get a cut along the loop a + b + c. This can be represented by the following relation: (a + b + d) + (c − d) = (a + b + c). To formally define this relation, we define the following commutative groups:
- C0 is the free abelian group generated by the set of vertices {{mset|x, y, z}}. Each element of C0 is called a 0-dimensional chain.
- C1 is the free abelian group generated by the set of directed edges {a,b,c,d}. Each element of C1 is called a 1-dimensional chain. The three cycles mentioned above are 1-dimensional chains, and indeed the relation (a + b + d) + (c − d) = (a + b + c) holds in the group C1.
Most elements of C1 are not cycles, for example a + b, 2a + 5b − c, etc. are not cycles. To formally define a cycle, we first define boundaries. The boundary of an edge is denoted by the operator and defined as its target minus its source, so So is a mapping from the group C1 to the group C0. Since a, b, c, d are the generators of C1, this naturally extends to a group homomorphism from C1 to C0. In this homomorphism, . Similarly, maps any cycle in C1 to the zero element of C0. In other words, the set of cycles in C1 generates the null space (the kernel) of . In this case, the kernel of has two generators: one corresponds to a + b + c and the other to a + b + d (the third cycle, c − d, is a linear combination of the first two). So is isomorphic to Z2.
In a general topological space, we would define higher-dimensional chains. In particular, C2 would be the free abelian group on the set of 2-dimensional objects. However, in a graph there are no such objects, so C2 is a trivial group. Therefore, the image of the second boundary operator, , is trivial too. Therefore: This corresponds to the intuitive fact that the graph has two "holes". The exponent is the number of holes.
= General case =
The above example can be generalized to an arbitrary connected graph G = (V, E). Let T be a spanning tree of G. Every edge in E \ T corresponds to a cycle; these are exactly the linearly independent cycles. Therefore, the first homology group H1 of a graph is the free abelian group with {{abs|E \ T}} generators. This number equals {{abs|E}} − {{abs|V}} + 1; so: In particular, the first group is trivial if and only if X is a forest.
0th homology group
The general formula for the 0th homology group of a topological space X is:
= Example =
Returning to the graph with 3 vertices {{mset|x, y, z}} and 4 edges {{mset|a: x → y, b: y → z, c: z → x, d: z → x}}. Recall that the group C0 is generated by the set of vertices. Since there are no (−1)-dimensional elements, the group C−1 is trivial, and so the entire group C0 is a kernel of the corresponding boundary operator:
The image of
= General case =
The above example can be generalized to any connected graph. Starting from any vertex, it is possible to get to any other vertex by adding to it one or more expressions corresponding to edges (e.g. starting from x, one can get to z by adding y − x and z − y). Since the elements of
In general, the graph can have several connected components. Let C be the set of components. Then, every connected component is an equivalence class in the quotient group. Therefore:
.C
= Reduced homology =
Often, it is convenient to assume that the 0th homology of a connected graph is trivial (so that, if the graph contains a single point, then all its homologies are trivial). This leads to the definition of the reduced homology. For a graph, the reduced 0th homology is:
Higher dimensional homologies
A graph has only vertices (0-dimensional elements) and edges (1-dimensional elements). We can generalize the graph to an abstract simplicial complex by adding elements of a higher dimension. Then, the concept of graph homology is generalized by the concept of simplicial homology.
= Example =
In the above example graph, we can add a two-dimensional "cell" enclosed between the edges c and d; let's call it A and assume that it is oriented clockwise. Define C2 as the free abelian group generated by the set of two-dimensional cells, which in this case is a singleton {{mset|A}}. Each element of C2 is called a 2-dimensional chain.
Just like the boundary operator from C1 to C0, which we denote by
= General case =
In general, one can define chains of any dimension. If the maximum dimension of a chain is k, then we get the following sequence of groups: