收藏切换
Computing Persistent Homology by Spanning Trees and Critical Simplices
收藏切换
PDF
Dinghua Shi1, Zhifeng Chen2, Chuang Ma3, Guanrong Chen4, *
Research. Vol 6 Article ID 0230
Less
收藏切换
Research. Vol 6 Article ID 0230
• Research Article •
Computing Persistent Homology by Spanning Trees and Critical Simplices
Full
Dinghua Shi1, Zhifeng Chen2, Chuang Ma3, Guanrong Chen4, *
Affiliations
  • 1Department of Mathematics, College of Science, Shanghai University, Shanghai, China.
  • 2School of Big Data, Fuzhou University of International Studies and Trade, Fuzhou, China.
  • 3Department of Data Science and Big Data Technology, School of Internet, Anhui University, Hefei, China.
  • 4Department of Electrical Engineering, City University of Hong Kong, Hong Kong, China.
Published: 2023-09-20 doi: 10.34133/research.0230
Outline
收藏切换

Topological data analysis can extract effective information from higher-dimensional data. Its mathematical basis is persistent homology. The persistent homology can calculate topological features at different spatiotemporal scales of the dataset, that is, establishing the integrated taxonomic relation among points, lines, and simplices. Here, the simplicial network composed of all-order simplices in a simplicial complex is essential. Because the sequence of nested simplicial subnetworks can be regarded as a discrete Morse function from the simplicial network to real values, a method based on the concept of critical simplices can be developed by searching all-order spanning trees. Employing this new method, not only the Morse function values with the theoretical minimum number of critical simplices can be obtained, but also the Betti numbers and composition of all-order cavities in the simplicial network can be calculated quickly. Finally, this method is used to analyze some examples and compared with other methods, showing its effectiveness and feasibility.

Dinghua Shi, Zhifeng Chen, Chuang Ma, Guanrong Chen. Computing Persistent Homology by Spanning Trees and Critical Simplices[J]. Research, 2023 , 6 (9) : 0230 - . DOI: 10.34133/research.0230
In the era of big data [1], higher-dimensional data and their analysis connect together the fields of data science [2,3], network science [4], and computational topology [5,6]. In these studies, algebraic topology especially persistent homology [7–10] plays a key role. In fact, the shape of a dataset can be viewed as the real representation of the true data only if it appears persistently in various spatiotemporal scales; otherwise, it might likely contain sampling errors or noise.
One typical example is the point-cloud data, such as the recorded spatial coordinates and brightness of a scanned image, as shown in Fig. 1 (left picture). With this dataset, with a given threshold value, one can establish the topological relationship among all the points, obtaining a simplicial complex as shown in Fig. 1 (middle picture). Simple complexes obtained by different methods are usually different, for example, they can be dense such as the Čech complex [11] and the Vietoris-Rips complex [12], or sparse such as the Alpha complex [13] and Witness complex [14]. From the perspective of network science, the network composed of all-order (all different orders of) simplices in a simplicial complex is called a simplicial network. To this end, by increasing the threshold values, one can obtain and analyze the filtered simplicial network so as to dynamically extract its topological features under different scales, as shown in Fig. 1 (right picture). In general, time series data can be converted to point-cloud data after determining the number of points, time windows, and spatial dimensions [15].
Network science can be traced back to Euler when he solved the Königsberg 7-bridge problem, thereby establishing the graph theory. In the era of the Internet with big data, the models of small-world networks [16] and scale-free networks [17] attracted a lot of attention. Consequently, in the study of totally homogeneous networks [18], it was found that the Euler characteristic number χ can be applied to analyzing complex networks, where cliques (fully connected subnetworks) are simplices of different orders, such as node (0-simplex, i.e., order 0), edge (1-simplex), triangle (2-simplex), and so on. The summation of these clique numbers with alternative signs is an invariant value of the given network, namely, the Euler characteristic number χ. On the other hand, in addition to cliques, there are many cavities in a large-scale network. The shape and the number of some cavities commonly seen in geometry are shown by the examples in Fig. 2. In order to distinguish the numbers of cavities on a sphere and on a torus, Poincaré introduced the concept of triangulation, to triangulate a cycle to get a triangle that is not a 2-simplex, to triangulate a sphere to get a tetrahedron that is not a 3-simplex, and to triangulate a torus to get a more complex network, which will be further discussed in the Methods section. The numbers of cavities are called Betti numbers, denoted βk, and the summation of the Betti numbers with alternative signs is equal to χ (see Fig. 2).
One conventional approach to network science studies is to consider simplices as basic network elements and define their vector spaces, in which chains, cycles, etc. are further introduced, and consequently apply the theory and methods of algebraic topology. Here, these networks are called simplicial (complexes [19]) networks [20], which are higher-order networks [21,22], and their orders are determined by the highest-order simplex. Thus, the common graph networks are 1-order ones because they only consider nodes and edges. It is known that the cyclic structures in simplicial networks are of fundamental importance because they provide feedback paths in higher-order dynamical interactions over such networks [23]. However, for relatively dense networks, the numbers of cycles are extremely large. Therefore, classifying cycles in large simplicial networks is a great challenge, which eventually relies on the computation of homology groups [24]. In addition to Betti numbers, which can only give the ranks of homology groups, the cycles whose classes constitute the elements of the homology groups carry some important information. In practice, interests are usually in representative cycles that have some optimal properties.
In homology theory, persistent homology starts from the Morse theory [25], which uses a continuous real variable function to calculate homology. Barannikov [26] studied framed Morse complex and its invariants. Forman [27] discredited Morse functions and assigned real values to simplices in simplicial networks, thereby classifying them. It was revealed [26,27] that the number of critical simplices (see the “Basic concepts” section for a precise definition) is between the number of cliques and the number of cavities, and that the summation of the numbers of critical simplices with alternative signs is also equal to the characteristic number χ. There are several different ways to assign values to simplices; for example, Sizemore [28] used the edge weights of a weighted network, Horak et al. [29] assigned values to simplices from lower order to higher order, and Kannan et al. [30] designed a method that can theoretically find a near-minimum number of critical simplices.
Similar to the point-cloud data scenario where different thresholds can induce a filtered simplicial network, by assigning values of a discrete Morse function to simplices, one can also obtain a sequence of nested simplicial subnetworks [31,32]. However, different methods for assigning values will result in different filtered networks with different numbers of critical simplices. The results of computing persistent homology can be represented by persistence diagrams, persistence barcodes, persistence landscapes, and so on. However, the persistence barcodes of different Morse values are different too, as can be seen from Fig. 3 in the Methods section.
This paper proposes an optimal method for assigning Morse values by using all-order spanning trees of the network, such that the number of critical simplices in each order is equal to the Betti number of the same order. Furthermore, by solving the systems of spanning trees and critical simplex equations, those simplices that constitute all-order cavities can be easily obtained because the corresponding equations have unique solutions.
The rest of the paper is organized as follows. In the Results section, the new method will be applied to some networks, specifically the C. elegans neural network, BA scale-free model network, and a network formed by point-cloud dataset, which will be compared with the existing methods to demonstrate the effectiveness and feasibility of the new method. In the Discussion section, different sequences of nested networks, the optimal property of the obtained cavities, and the influence of various chains on homology calculation will be discussed. Finally, in the Methods section, homology of simplicial network and discrete Morse function will be introduced, where an example is given to show how to use spanning trees to assign Morse function values to simplicial networks, and to draw persistence barcodes. Then, computational methods based on the systems of spanning trees and critical simplex equations will be developed.
The procedure shown in the Methods section is summarized as follows. Firstly, a simplicial network is obtained by calculating or enumerating all simplices. Secondly, in the simplicial network, a sequence of nested simplicial subnetworks (i.e., filtered simplicial network) is obtained by searching all-order spanning trees and assigning Morse function values to simplices. Finally, in different subnetworks, simplices composed of all-order cavities are obtained by solving matrix equation (T − Bk) (T − x) T = (C − Bk) (mod 2).
Now, the developed method is applied to the C. elegans neural network, BA scale-free network, and Stanford Dragon graphic network. The results will be compared with the existing methods.
As a conventional network G = {V, E}, it has 297 neurons in V and 2,148 synapses in E, and the adjacency matrix is given by the dataset from Ref. [33].
By computing the conventional network G [24], the following simplicial network K = {V, E, T, •••} can be obtained, with the Euler characteristic number (and the Betti numbers βk) χ = 297 – 2,148 + 3,241 – 2,010 + 801 – 240 + 40 − 2 (= 1 – 139 + 121 − 4) = −21. The ranks of boundary matrices B1, B2, •••, B7 for describing the relationship between simplices are r1 = 296, r2 = 1,713, r3 = 1,407, r4 = 599, r5 = 202, r6 = 38, and r7 = 2, respectively. Then, one can search for 4 3-order cavities by 0-1 programming.
The main results of the new method (with all details included in Table S2) are as follows:
1. All-order spanning trees in the network are obtained, where the number of simplices in the k-order spanning tree is rk, k =1, 2, •••, 7.
2. Morse function values and critical simplices in the network are assigned, where the numbers of the critical simplices in the k-simplices are βk, k = 0, 1, 2, 3, and the rest are zero.
3. Nested simplicial subnetworks ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ K4521 = K in the network are obtained, where n = r1 + β1 + r2 + β2 + r3 + β3 + r4 + ••• + r7 = 4,521.
4. Simplices composed of all-order cavities in the network and length distributions of cavities are obtained.
For example, the length distribution of 1-order cavities is shown in columns 2 to 8 of Table 1, while the optimal length distribution of 1-order cavities is shown in columns 9 and 10.
The optimal length distribution of 1-order cavities is obtained by the exhaustive searching method. First, according to the critical simplices, search all 1-order cycles with a length of 4 that pass through each given critical simplex. Then, select those cycles that are linearly independent as cavities and delete the corresponding critical simplices. Finally, increase the lengths of the searched cycles in the remaining critical simplices and search again, until all cavities are found.
The length distribution of 2-order cavities appears to be more complicated. Tracing the evolution of cavities from large to small will find the length distribution of 2-order cavities, as shown in Table 2. The total length of 121 2-order cavities is reduced from 3,330 to 1,790 2-order simplices.
The above is the result of 4 iterations. Each iteration is to add one 3-simplex or 2-cavity (with more than half of the same nodes) to it. Here, a 2-order cavity with length 34 is used as an example. After 2 iterations, the length of the cavity is reduced to 8, which achieves the best.
The 2-order cavity has nodes (2, 3, 4, 13, 14, 15, 17, 85, 87, 103, 114, 115, 117, 118, 121, 133, 143, 192); another 2-order cavity with length 30 has nodes (2, 3, 4, 13, 14, 15, 17, 85, 87, 103, 114, 115, 117, 121, 133, 143, 192), which share 27 same 2-simplices with the former, and they are deleted when 2 2-order cavities are added as shown by the crossed numbers shown in Table 3. Thus, the result yields a new 2-order cavity with length 10, which replaces the former. The new 2-order cavity has nodes (4, 13, 87, 117, 118, 133, 192); another 3-simplex has nodes (4, 13, 87, 118) to be added again. The result is a 2-order cavity with length 8, as shown in Table 3.
The length distribution of 3-order cavities is shown in columns 2 to 5 of Table 4, while the shorter length is shown in columns 6 and 7. The result is obtained by 0-1 programming [24], or through 5 iterations.
As can be seen above, the new method can quickly find simplices composed of all-order cavities in a sequence of nested subnetworks, but the length of the cavity is not necessarily the shortest. It needs to be shortened by multiple iterations.
In Ref. [30], initially there are 2 nodes in the network. Then, one new node with 2 new edges are added each time according to the BA model generation mechanism. When there are 1,000 nodes in the network, the process stops. Thus, a simplicial network K = {V, E, T} is obtained, in which the Euler characteristic number (and the Betti numbers βk) χ = 1,000 – 1,996 + 55 (= 1 − 942) = −941. The numbers of critical simplices obtained by Kannan's assignment method [30] are c0 = 8, c1 = 949, respectively, and the Betti persistence barcodes are obtained as shown in Fig. 4.
The abscissa axis in Fig. 4 is the normalized filtration weight dividing with wN, where wN is 1 plus the maximum value among weights assigned to the simplices in K.
In the simulation of Ref. [30], 55 2-order simplices are obtained, while our simulation result is 59 due to randomness, in which the Euler characteristic number (and the Betti numbers βk), χ = 1,000 – 1,996 + 59 (= 1 − 938) = −937, and the ranks of boundary matrices B1, B2 for describing the relationship between simplices are r1 = 999 and r2 = 59, respectively. The sequences of nested simplicial subnetworks, ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ Kn = K, of this BA scale-free network K are n1 (= c0 + c1 − 1 = 17 + 954 − 1) = 970 and n2 (= r1 + βk + r2 = 999 + 938 + 59) = 1,996, obtained by Kannan's [30] and by our assignment method, respectively. The numbers of critical simplices obtained by 2 assignment methods are c0 = 17, c1 = 954 and c0 = 1, c1 = 938, respectively. Obviously, our assignment method can reach the minimum value and find the representative cycles of cavities (all details are given in Table S3).
Point-cloud data of the network sample points are obtained uniformly at random from the 3-dimensional scans of the dragon photo, with reconstruction as shown in Fig. 5A. The point-cloud data list 1,000 points in the (x, y, z)-coordinates. As the threshold increases from 0 to 0.016, the threshold values of all simplices in the previous ordering are recorded. The simplicial network K finally formed by the point-cloud data has 1,000 0-simplices (nodes), 6,971 1-simplices (edges), 22,712 2-simplices (triangles), and 51,543 3-simplices (tetrahedrons). Its Euler characteristic number (and Betti numbers βk) is χ = 1,000 – 6,971 + 22,712 – 51,543 (= 1 – 66 + 1 – 34,738) = −34,802. The numbers of critical simplices obtained by Otter's assignment method [34] are c0 = 1,000, c1 = 276 + 999 = 1,275, c2 = 7 + 210 = 217, •••, and Betti persistence barcodes of 1- and 2-order cavities calculated by the method in Ref. [34] are shown in Fig. 5B. The lines with arrow in the picture are persistent, corresponding to 1- and 2-order cavities, and the rest represent birth and death.
Our method can also find all the above results with noise removed; i.e., there are no barcodes of birth and death therein. The reason is that the nested sequences of the 2 (space and simplicial) filtrations are different. Also, the representative cycles of the only 2-order cavity have lengths 38 [34] and 14 (our method), respectively. All details are given in Table S4.
In the above 3 case studies, the first example demonstrates that using spanning trees of various orders, it is possible to more easily explore higher-order network topologies from low to high; the second example shows that the network density can remain balanced as the network evolves and grows to get a filtration; the third example illustrates that increasing the threshold values will change the network from spare to dense, thereby becoming subtle and more accurate. All these examples from data science have nested simplicial subnetworks. It can be seen that, in order to study the topological characteristics of these datasets and their networks, critical simplices and Betti numbers that describe cavities are important and fundamental. Compared with the existing methods, our method can find the minimum number of critical simplices, and can also determine the number of nested simplicial subnetworks. In particular, our method can quickly find the simplices composed of all-order cavities, facilitating the understanding of the topological features of the dataset under investigation.
To further illustrate the significance of our method, consider the construction of a brain network model. Many research reports have shown that constructing the brain network model based on a fixed threshold of connectivity led to controversial results with unconvincing comparisons due to the lack of a priori biological knowledge and universally acceptable criteria. Our method does not pre-set any threshold value, but is dynamically increasing the threshold to reveal the topological characteristics of the network. This helps observe the evolution of the brain topology to obtain the best possible threshold value for the model, which is clearly related to the network order. This also helps reveal the topological characteristics of persistent homology, which is related to the number of critical simplices, thereby finding the essential differences of various brain network models. Moreover, the threshold defined in our method can be the distance between nodes, the coupling strength, or the gray level of data, indicating its usefulness in a broad range of real-world applications.
A filtered network is a nested sequence of its subnetworks: ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ Kn = K. The filtered network is the core in topological data analysis. Therein, a filtered simplicial network induced by Morse function is particularly important. Because the persistence barcodes calculated from different nested sequences are generally different, the assigned Morse function value (or the filtration obtained by other methods) determines the number of critical simplices, the birth and death time of some cavities, and the evolution of the cavity length (from large to small).
A k-cavity in the homology group Zk /Yk is a cycle in one of the linearly independent cycle-equivalent classes. Each class selects a cycle as its representative, and all representative cycles constitute a homology basis. A cavity is called optimal if the length of its representative cycle is the smallest, and a homology basis is called optimal if the total length of its representative cycles is the smallest. All the cavities obtained by other methods for the C. elegans neural network are not optimal. The optimal 1-order cavities are obtained by exhaustive searching, but the optimal 3-order cavities are obtained by the 0-1 programming method. For k > 1, the problem of computing an optimal homology basis is NP-hard [35]. Nevertheless, the problem is polynomial-time solvable for k = 1 [36]. For an l-order simplicial network, without counting for the iteration of simplifying the cavity lengths, the computational complexity of the proposed method of solving equations is O(N3), where N is the network size, i.e., N = m0 + m1 + m2 + m3 + ⋯+ ml, the total number of all-order simplices.
In the matrix equation (Eq. 4), because the matrix (T − Bk)T(T − Bk) is not reversible, another method is used to solve it. To do so, consider a k-order orientated simplex [i0, i1, ⋯ , in] with a boundary [i0, i1, ⋯ , ip-1, ip+1, ⋯ , in] where ip is removed. Then, each element of Bn is given a plus or a minus sign [19], determined by (−1)p, and the resultant matrix is denoted as B[n]. All k-order cavities satisfy the following matrix equation:
T−BkT−xT=C−Bk
Further, because the matrix (T − B[k])T(T − B[k]) is invertible, the matrix equation (Eq. 1) has a unique solution, given by
T−xT=T−BkTT−Bk−1T−BkTC−Bk
Because of different definitions of chain and cycle [19], the method would cause the problem of repeating simplices in some cycles; see the last line in Table 3. It is more appropriate to use the following formula:
T−xT=T−BkTT−Bk−1T−BkTC−Bkmod⋅2
As mentioned in Ref. [34], changing the coefficient field in the definitions of chain and cycle can affect the Betti numbers. For example, if one computes the homology of the Klein bottle with coefficients in the field Fp, where p is a primer, then β0(K) = 1 for all primers p. However, β1(K) = 2 and β2(K) = 1 if p = 2, but β1(K) = 1 and β2(K) = 0 for all other primers p.
With the orientated boundary matrix, the Hodge-Laplacian matrix can be obtained by Ln=BnTBn+Bn+1Bn+1T=Lndown+Lnup. It is known that the number of zero eigenvalues of the Hodge-Laplacian matrix L(k) equals the number of k-order cavities, namely, the Betti number βk. Note that zero eigenvectors can provide information about cavities, which is a topic worth studying.
Although homology calculation involves classifying cycles of a simplicial network, one can change the perspective to consider spanning trees of the network instead. This is because each new simplex added to a spanning tree will create a unique cycle. To ensure that the generated cycle is a cavity rather than just another simplex of higher order, the newly added simplex must be a critical one. For this purpose, an optimal method of assigning Morse values not only has to keep the persistence of cavities but also needs to reduce their calculations. It will be shown that the new method for solving the system of spanning trees and critical simplex equations can greatly improve the computational efficiency, e.g., compared to the 0-1 programming method used for searching all cycles [24].
A k-simplex αk is a fully connected subnetwork composed of k + 1 nodes, denoted by (v0, v1, ••• , vk). Let p and q be 2 integers. A simplex αp is a face of another simplex αq if αp ⊂ αq. A simplex αq is a coface of another simplex αp if αq ⊃ αp. A simplicial complex K satisfies that (a) its every node is in some simplex in K, and (b) for a simplex α ∈ K, if a simplex β ⊂ α, then β ∈ K. A conventional network is denoted by G = {V, E}, where V is the node set and E is the edge set, which has an adjacency matrix to characterize the connected edges. When all-order simplices of a network are enumerated or calculated, the network is called a simplicial network and denoted as K = {V, E, T, •••}, which has many incidence matrices, for example, boundary matrices B1, B2, etc., to describe the relationship between simplices [20]. A filtration of a simplicial network is defined as a sequence of nested simplicial subnetworks, ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ Kn = K.
Let Ck be the vector space in the binary field with a basis consisting of k-simplices, whose dimension mk is equal to the number of k-simplices. In the binary field, the addition between 2 vectors c and d is defined by set operations as c + d = (c∪d) − (c∩d). To study the linear dependence, boundary matrices are introduced. For instance, in vector space C1, define a node-edge matrix B1, in which an entry is 1 if a node is in the corresponding edge; otherwise, it is 0. The rank rk (r0 = 0 by convention) of the boundary matrix Bk is the number of linearly independent vectors in space Ck. Furthermore, define a boundary operator ∂k: Ck→Ck-1 to connect 2 successive spaces. Linear combinations of elements in Ck are called k-chains. A k-cycle l is defined by ∂k(l) = 0. Moreover, define the kernel space of Ck by ker(∂k) = {l∈ Ck | ∂k(l) = 0}, and denote it as Zk. Also, define the image space on Ck by im(∂k+1) = ∂k+1(l) | l∈Ck+1}, which is the image of Ck+1 mapping to Ck and denote it as Yk. Since ∂k(∂k+1) = 0, one has im(∂k+1) ⊆ ker(∂k). Two k-cycles c and d are said to be equivalent, denoted c ~ d, if c + d is a boundary of a (k + 1)-chain. Classifying the kernel (cycle) space Zk with respect to Yk yields a homology group Zk/Yk. A k-cavity is a cycle that is usually selected with the shortest length in one of the linearly independent cycle-equivalent classes, whose number is equal to the Betti number βk = mk − rk − rk+1.
A simplicial network containing no k-cycle is called a forest, while a connected forest is called a k-tree. If the network itself is not a k-tree, but it can be seen as a certain k-tree with some additional simplices of older not higher than k, then this k-tree is called a k-order spanning tree. In this paper, the k-order spanning tree is searched by finding the rank of the boundary matrix Bk, for which details are given in Table S1.
Now, let K be a simplicial network. Given a function f: K→R, for each simplex αp ∈ K, define 2 sets of simplices: Uf(αp) = {αp+1|αp+1 ⊃ αp, f(αp+1) ≤ f(αp)} and V f(αp) = {|αp-1 ⊂ αp, f(αp-1) ≥ f(αp)}. Then, a function f: K→R is a discrete Morse function if and only if for every simplex αp ∈ K, both #Uf(αp) ≤ 1 and #V f(αp) ≤ 1 hold. The symbol # indicates the number of elements in the set. That is, at most one coface of one order higher is allowed such that f(αp+1) ≤ f(αp) and at most one face of one order lower is allowed such that f(αp-1) ≥ f(αp). A simplex αp of a simplicial network K with a discrete Morse function f is critical if and only if both #Uf(αp) = 0 and #V f(αp) = 0 hold. Let ck be the number of k-order critical simplices. Then, for an l-order simplicial network, one has mk ≥ ck ≥ βk when 0 ≤ k ≤ l and χ = m0 − m1 + m2 − m3 +⋯+ (−1)lml = c0 − c1 + c2 − c3+⋯+(−1)lcl = β0 − β1 + β2 − β3 +⋯+(−1)lβl.
If the function defined on a simplicial network K can induce a sequence of nested simplicial subnetworks, ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ Kn = K, then this sequence is called a filtered simplicial network. A k-cavity that appears in the subnetwork Ki can potentially become the boundary of a (k + 1)-chain of a later subnetwork Ki+j with j > 0, which will no longer constitute a k-cavity in Ki+j. As such k-cavity has a unique index that corresponds to its birth (i of Ki) and death (i+j of Ki+j) in crossing the filtration, the other k-cavities without dead indexes are said to be persistent.
Now, consider the network with 7 0-simplices (nodes), 10 1-simplices (edges), and 3 2-simplices (shaded triangles), as shown in Fig. 3A. The characteristic number of this 2-order simplicial network K is χ = 7 – 10 + 3 = 0. Next, specify the Morse values to the simplex for the network in the following way [32]: 1-v0, 2-v1, (1,2)-e1, 3-v2, 4-v3, (3,4)-e3, 5-v4, (4,5)-e4, 6-v5, (5,6)-e5, (1,2)-e6, (4,6)-e7, (4,5,6)-f7, 7-v8, (3,7)-e8, (4,7)-e9, (3,6)-e10, (2,6)-e11, (2,3,6)-f11, and (3,4,7)-f12. Thus, the network has 2 nodes v0 and v2; 3 edges e6, e9, and e10; and 1 face f12, which are critical simplices. The summation of the numbers of critical simplices with alternative signs, 2 – 3 + 1 =0, is also equal to the characteristic number χ. The sequence of nested simplicial subnetworks of this network K is ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ K12 = K. For example, K2 = {v0, v1, e1, v2}. Non-diamond arrow lines in Fig. 3B show the corresponding Betti persistence barcodes, where v0 and e10 are persistent, while v2 and e9 are birth and death elements. That is, v0 and e10 are cavities of order 0 and 1, respectively. The starting time is indicated by the subscript. Here, v2 shows that the birth time is 2, e6 shows that the death time is 6, e9 shows that the birth time is 9, and f12 shows that the death time is 12.
However, different methods of assigning values may result in different starting time and also different sizes of a cavity. The red diamond arrow lines in Fig. 3B show the Betti persistence barcodes of the corresponding Morse values: 1-v0, 2-v1, (1,2)-e1, 3-v2, (2,3)-e2, 4-v3, (3,4)-e3, 5-v4, (4,5)-e4, 6-v5, (5,6)-e5, 7-v6, (3,7)-e6, (3,6)-e7, (4,6)-e8, (4,5,6)-f8, (4,7)-e9, (3,4,7)-f9, (2,6)-e10, and (2,3,6)-f10. Clearly, there are only 2 critical simplices: node v0 and edge e7. Thus, the figure between critical simplices and their subscript numbers is just a persistence barcode. The summation of the numbers of critical simplices with alternative signs, 1 − 1 = 0, is also equal to the characteristic number χ. The sequence of nested simplicial subnetworks is ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ K10 = K.
The above new Morse values show that the original e10 comes before e7, the 1-order cavity starting with 4 edges, but after joining by e8, it has only 3 edges. This means that the 1-order cavity appears earlier and then shrinks from big to small.
A torus with small red cycles and big blue cycles is shown in Fig. 6A for illustration. Consider a network of 3 small red cycles and 3 big blue cycles, which has 9 nodes and 18 edges.
A triangulation of the torus can be obtained by adding 9 edges to the quadrilateral in the network. The obtained network with 9 nodes and 27 edges is shown in Fig. 6B. The simplicial network composed of all-order simplices in the network is obtained as K = {9 0-simplices (nodes), 27 1-simplices (edges), 18 2-simplices (triangles)}. Its characteristic number χ = m0 – m1 + m2 = 9 − 27 + 18 = 0. The boundary matrices B1, B2, etc. describe the relationship between simplices. The 18 2-order simplices of K are as follows: (1,2,5), (1,2,7), (1,3,4), (1,3,9), (1,4,5), (1,7,9), (2,3,6), (2,3,8), (2,5,6), (2,7,8), (3,4,6), (3,8,9), (4,5,8), (4,6,7), (4,7,8), (5,6,9), (5,8,9), and (6,7,9). However, triangles (1,2,3), (1,4,7), (1,5,9), (2,5,8), (2,6,7), (3,4,8), (3,6,9), (4,5,6), and (7,8,9) are not 2-simplices in K.
1. Searching all-order spanning trees in a network
There are many ways to find spanning trees in a given network. Here, the row elementary transformation method of matrix is used to find the rank of the boundary matrices B1 and B2. Start from the last row of the boundary matrix B1 to find the leftmost 1, and go up row by row. If 2 different rows in the same column are both 1, by the row transformation over binary operations, they will be removed. The desired spanning tree is finally obtained, as can be seen from the columns corresponding to all “1” in boldface (may be an identity matrix) shown in Table 5.
The 1-order spanning tree of the triangulation network consists of (1,2), (1,3), (1,4), (1,5), (1,7), (1,9), (2,6), and (2,8). This shows that r1 = 8.
The 2-order spanning tree of the triangulation network consists of (1,2,5), (1,2,7), (1,3,4), (1,3,9), (1,4,5), (1,7,9), (2,3,6), (2,3,8), (2,5,6), (2,7,8), (3,4,6), (3,8,9), (4,5,8), (4,6,7), (4,7,8), (5,6,9), and (5,8,9). This shows that r2 = 17. Thus, β0 = 9 – 0 – 8 = 1, β1 = 27 – 8 – 17 = 2, and β2 = 18 – 17 – 0 = 1.
2. Classifying the remaining simplices other than spanning trees
Except for the simplices in the 1-order spanning tree, the remaining 1-simplices can be classified into 2 categories: simplices in the 2-order spanning tree and 1-order cavity-generating simplices. For example, 1-simplices (2,3) and (4,7) are not in the 2-order spanning tree. Thus, they are 1-order cavity-generating simplices. Similarly, the 2-simplex (6,7,9) is a 2-order cavity-generating simplex. Obviously, the first selected node 1 is a 0-order cavity-generating simplex.
3. Assigning Morse function values to simplices
To find the lower bound of the critical simplex numbers, it should be noted that only those cavity-generating simplices can be critical simplices. Therefore, the function values are specified to the simplices in the following way: 1-v0, 2-v1, (1,2)-e1, 3-v2, (1,3)-e2, 4-v3, (1,4)-e3, 5-v4, (1,5)-e4, 7-v5, (1,7)-e5, 9-v6, (1,9)-e6, 6-v7, (2,6)-e7, 8-v8, (2,8)-e8, (2,3)-e9, (4,7)-e10, (2,5)-e11, (1,2,5)-f11, (2,7)-e12, (1,2,7)-f12, (3,4)-e13, (1,3,4)-f13, (3,9)-e14, (1,3,9)-f14, (4,5)-e15, (1,4,5)-f15, (7,9)-e16, (1,7,9)-f16, (3,6)-e17, (2,3,6)-f17, (3,8)-e18, (2,3,8)-f18, (5,6)-e19, (2,5,6)-f19, (7,8)-e20, (2,7,8)-f20, (4,6)-e21, (3,4,6)-f21, (8,9)-e22, (3,8,9)-f22, (5,8)-e23, (4,5,8)-f23, (6,7)-e24, (4,6,7)-f24, (4,8)-e25, (4,7,8)-f25, (6,9)-e26, (5,6,9)-f26, (5,9)-e27, (5,8,9)-f27, and (6,7,9)-f28.
The subscripts of critical simplices, 1-v0, (2,3)-e9, (4,7)-e10, and (6,7,9)-f28, indicate the starting time of 1 0-order cavity, 2 1-order cavities, and 1 2-order cavity, respectively.
This Morse function induces a sequence of nested simplicial subnetworks, ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ K28 = K, for the triangulation network. It will greatly simplify the homology calculation for lower orders.
4. Computing simplices composed of all-order cavities
A k-cavity can be expressed as x = (x1, x2, •, xmk) ∈ Ck, in which each component xi takes value 1 or 0, where 1 represents a k-simplex with index i in the cavity while 0 means no such simplex exists. Let Bk be the boundary matrix between the (k − 1)-simplices and the k-simplices. Then, a k-cavity x must satisfy the equation BkxT = 0 (mod 2).
The jth column of matrix Bk is marked as Bk j, and the columns in the matrix obtained by removing the jth column from Bk is denoted as Bk-j. Suppose that the jth simplex is a k-order cavity-generating simplex. From the equation BkxT = 0 (mod 2), with multiplication according to block matrices, it follows that Bk−j(x−j)T = −Bkj (mod 2). The matrix composed of all columns of the k-order spanning tree and the matrix composed of all columns of the corresponding k-order cavity-generating simplices in matrix Bk are denoted as T − Bk and C − Bk, respectively. Let T − x express the unknown 0-1 matrix of simplices corresponding to the k-order spanning tree. Then, all simplices of the k-order cavities satisfy the following matrix equation:
T−BkT−xT=C−Bkmod⋅2
Note, however, that although the spanning tree matrix (T − Bk) is of full rank, the inverse of the matrix (T − Bk)T(T − Bk) may not exist because of the relationship between matrix operations over the binary field; thus, one can only use the row operation of the matrix elementary transformation to solve this matrix equation.
From Table 5, one obtains the solution of matrix equation (Eq. 4): x(1,2) = (1,0), x(1,3) = (1,0), x(1,4) = (0,1), x(1,5) = (0,0), x(1,7) = (0,1), x(1,9) = (0,0), x(2,6) = (0,0), x(2,8) = (0,0). Thus, 2 1-order cavities are obtained: {(1,2), (1,3), (2,3)} and {(1,4), (1,7), (4,7)}, respectively. Similarly, a 2-order cavity consists of {(1,2,5), (1,2,7), (1,3,4), (1,3,9), (1,4,5), (1,7,9), (2,3,6), (2,3,8), (2,5,6), (2,7,8), (3,4,6), (3,8,9), (4,5,8), (4,6,7), (4,7,8), (5,6,9), (5,8,9), (6,7,9)}. This 2-order cavity is obtained by similarly solving a system of equations, which also yields a triangulation of the torus.
All computations and tables of this example are presented in Table S1.
The method developed in this paper is an optimal method of assigning Morse values to a given simplicial network. The method starts from any node in a connected branch and assigns it a value of 0; searches all-order spanning trees and identifies critical simplices with the boundary matrix Bk; finds the node and edge connected to the start node in 1-order spanning tree and assigns a value of PO to the node and edge until all edges in the spanning tree are exhausted, then assigns the value of 1-order critical simplex one by one until the last l-order simplex is reached for an l-order simplicial network; gets the nested simplicial subnetworks ∅ ⊆ K0 ⊆ K1 ⊆ ••• ⊆ Kn = K, where n = r1 + β1 + r2 + β2 + ••• + ••• + rl + βl. Then, the method solves the equation systems of spanning trees and critical simplices from lower order to higher order, and finally obtains simplices of all k-order cavities by row operations on a matrix elementary transformation in the binary field.
1.
Morley-Fletcher, R. Big data: What is it and why is it important? In: Digital agenda for Europe. European Commission. TechTarget/Data Management, online; 2013.
2.
Carlsson G. Topology and data. Bull Am Math Soc. 2009;46:255–308.
3.
Offroy M, Duponchel L. Topological data analysis: A promising big data exploration tool in biology, analytical chemistry and physical chemistry. Anal Chim Acta. 2016;910:1–11.
4.
Newman M. Networks. Oxford (UK): Oxford University Press; 2018.
5.
Edelsbrunner H, Harer J. Computational topology: An introduction. Applied Mathematics. Boston (MA): American Mathematical Society; 2010.
6.
Dey T, Wang Y. Computational topology for data analysis. Cambridge (UK): Cambridge University Press; 2022.
7.
Edelsbrunner H, Letscher D, Zomorodian A. Topological persistence and simplification. Discrete Comput Geom. 2002;28:511–533.
8.
Carlsson G, Zomorodian A. Computing persistent homology. Discrete Comput Geom. 2005;33:249–274.
9.
Ghrist R. Barcodes: The persistent topology of data. Bull Am Math Soc. 2008;45(1):61–75.
10.
Edelsbrunner H, Harer J. Persistent homology—A survey. Contemp Math. 2008;453:257–282.
11.
Hatcher A. Algebraic topology. Cambridge (UK): Cambridge University Press; 2002.
12.
Zomorodian A. Fast construction of the Vietoris-rips complex. Comput Graph. 2010;34:263–271.
13.
Edelsbruneer H, Kirkpatrick D, Seidel R. On the shape of a set of points in the plane. IEEE Trans Inform Theory. 1983;29(4):551–559.
14.
Chazal F, De Silva V, Oudot S. Persistence stability for geometric complexes. Geom Dedicata. 2014;173:193–214.
15.
Lehmberg D, Dietrich F, Köster G, Bungartz HJ. Datafold: Data-driven models for point clouds and time series on manifolds. J Open Source Softw. 2020;5(51):2283.
16.
Watts D, Strogatz S. Collective dynamics of 'small-world' networks. Nature. 1998;393:440–442.
17.
Barabási AL, Albert R. Emergence of scaling in random networks. Science. 1999;286(5439):509–512.
18.
Shi D, Lü L, Chen G. Totally homogeneous networks. Natl Sci Rev. 2019;6(5):962–969.
19.
Bianconi, G. Higher-order networks: An introduction to simplicial complexes. Cambridge (UK): Cambridge University Press; 2020.
20.
Shi D, Chen G. Simplicial networks: A powerful tool for characterizing higher-order interactions. Natl Sci Rev. 2022;9(5):nwac038.
21.
Battiston F, Cencetti G, Iacopini I, Latora V, Lucas M, Patania A, Young J-G, Petri G. Networks beyond pairwise interactions: Structure and dynamics. Phys Rep. 2020;874:1–92.
22.
Battiston F, Petri G. Higher-order systems. Complexity. Berlin (Germany): Springer; 2022.
23.
Fan T, Lü L, Shi D, Zhou T. Characterizing cycle structure in complex networks. Commun Phys. 2021;4(272):1–9.
24.
Shi D, Chen Z, Sun X, Chen Q, Ma C, Lou Y, Chen G. Computing cliques and cavities in networks. Commun Phys. 2021;4:249.
25.
Morse M. The calculus of variations in the large. Boston (MA): American Mathematical Society; 1934.
26.
Barannikov S. Framed Morse complex and its invariants. Adv Sov Math. 1994;21:93–115.
27.
Forman R. Morse theory for cell complexes. Adv Math. 1998;134:90–145.
28.
Sizemore A, Giusti C, Bassett D. Classification of weighted networks through mesoscale homological features. J Complex Netw. 2016;5(2):245–273.
29.
Horak D, Maletić S, Rajković M. Persistent homology of complex networks. J Stat Mech Theory Exp. 2009;2009:P03034.
30.
Kannan H, Saucan E, Roy I, Samal A. Persistent homology of unweighted complex networks via discrete Morse theory. Sci Rep. 2019;9:13817.
31.
Mischaikow K, Nanda V. Morse theory for filtrations and efficient computation of persistent homology. Discrete Comput Geom. 2013;50(2):330–353.
32.
Scoville A. Discrete Morse theory. Boston (MA): American Mathematical Society; 2019.
33.
Rossi R, Ahned N. The network data repository with interactive graph analysis and visualization. In: Twenty-Ninth AAAI Conference, Austin, TX, USA. Palo Alto (CA): AAAI Press; 2015. p. 4292–4293.
34.
Otter N, Porter MA, Tillmann U, Grindrod P, Harrington HA. A roadmap f or the computation of persistent homology. EPJ Data Science. 2017;6(1):38.
35.
Chen C, Freedman D. Hardness results for homology localization. Discrete Comput Geom. 2011;45(3):425–448.
36.
Dey TK, Sun J, Wang Y. Approximating loops in a shortest homology basis from point data. In: Proceedings of the 26th Annual Symposium on Computational Geometry, Snowbird, UT, USA. New York (NY): Association for Computing Machinery; 2010. p. 166–175.
Year 2023 volume 6 Issue 9
PDF
34
20
Cite this Article
BibTeX
Article Info
doi: 10.34133/research.0230
  • Receive Date:2023-03-20
  • Online Date:2026-10-28
  • Published:2023-09-20
Article Data
Affiliations
History
  • Received:2023-03-20
  • Accepted:2023-08-29
Affiliations
    1Department of Mathematics, College of Science, Shanghai University, Shanghai, China.
    2School of Big Data, Fuzhou University of International Studies and Trade, Fuzhou, China.
    3Department of Data Science and Big Data Technology, School of Internet, Anhui University, Hefei, China.
    4Department of Electrical Engineering, City University of Hong Kong, Hong Kong, China.

Corresponding:

* Address correspondence to:
References
Share
https://castjournals.cast.org.cn/joweb/research/EN/10.34133/research.0230
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT