Abstract
Topological data analysis (TDA) has had enormous success in science and engineering in the past decade. Persistent topological Laplacians (PTLs) overcome some limitations of persistent homology, a key technique in TDA, and provide substantial insight to the behavior of various geometric and topological objects. This work extends PTLs to directed flag complexes, which are an exciting generalization to flag complexes, also known as clique complexes, that arise naturally in many situations. We introduce the directed flag Laplacian and show that the proposed persistent directed flag Laplacian (PDFL) is a distinct way of analyzing these flag complexes. Example calculations are provided to demonstrate the potential of the proposed PDFL in real world applications.
Key words and phrases. Persistent topological Laplacians, directed flag complex, directed flag Laplacians, clique complex, topological data analysis
2020 Mathematics Subject Classification. Primary: 55N31
1. Introduction.
Topological data analysis (TDA) is a rapidly growing field that uses tools from a multitude of disciplines to study connections between geometric, topological, directional, time-based, and functional information. TDA builds upon the fundamental objects of homology and cohomology through a filtration process, which gives rise to persistence modules. Persistence modules, including persistent (co)homology, are some of the most studied objects in TDA, and can convey information about a system in different dimensions, scales of size, and/or scales of time [37, 5]. They can be analyzed using persistent barcodes [13], persistent diagrams, persistent images [1], persistence landscapes [3], and persistent Betti numbers. These methods have been used to study protein folding [35], protein-ligand binding [4], virus mutation [8], chemistry [29], dynamical systems [25], and signal processing [24]. In fact, persistent homology owes its success to advanced machine learning models [17], particularly, topological deep learning introduced in 2017 [4].
However, persistent homology has many significant drawbacks that limit its utility in applications. For example, persistent homology cannot differentiate a five-member ring from a six-member ring, but such a difference is essential in molecular science. Additionally, persistent homology does not capture any non-topological changes which are crucial for networks. To overcome these drawbacks, Wei and colleagues introduced multiscale analysis into another fundamental object, topological Laplacians, including Hodge Laplacian and combinatorial Laplacians in 2019, resulting in evolutionary de Rham-Hodge theory, or persistent Hodge Laplacians [9], and persistent combinatorial Laplacians, also called persistent Laplacians [30]. Persistent Hodge Laplacians are built from differential forms on smooth manifolds [11, 9], while persistent combinatorial Laplacians are defined on simplicial complexes with point clouds [18, 10, 30]. They are referred to as persistent topological Laplacians (PTLs) due to their similarity in algebraic topology structure. The key characteristic of the topological Laplacian operators is that their harmonic spectra yield the Betti numbers that reveal the changes in topological invariants, while their non-harmonic spectra can convey additional information about the geometric variation [18]. By adding persistence, one can recover the persistent Betti numbers and capture the non-topological networking in the data. The development of PTLs has stimulated many new PTL formulations, including persistent sheaf Laplacians [34], persistent path Laplacians [31], persistent hyperdigraph Laplacians [6], and mathematical analysis of PTLs. Mémoli et al. [22] developed and analyzed algorithms for computing persistent topological Laplacians, and showed a related stability theorem for some of the eigenvalues involved. Persistent Laplacians have also been generalized to simplicial maps in Gülen et al. [16]. Recently, Liu et al. have developed an interleaving distance for studying persistent Laplacians and proved some stability theorems [19], establishing theoretical reliability of the results that persistent combinatorial Laplacians have seen in practice. Successful applications of persistent topological Laplacians have been reported in the literature, including protein-ligand binding [23] and the accurate prediction of SARS-CoV-2 emerging dominant variants [7]. More recently, Persistent Mayer homology and persistent Mayer Laplacian have been proposed to generalize the standard 2-chain complex into -chain complex, leading to a new family of homology and Laplacian formulations [27]. The superiority of persistent Laplacians over classic persistent homology was documented in a large scale machine learning-guided protein engineering study using 34 benchmark datasets [26]. A software package was developed for computing persistent Laplacians [32]. Recently, quantum persistent homology in terms of Dirac [2], persistent Dirac [33], and persistent Dirac of path and hypergraph [28] have been proposed to achieve a similar performance for point cloud data.
Motivated by the practical need to develop high-performance TDA models, we construct a directed flag Laplacian and propose persistent topological Laplacian theory on a type of simplicial complex called the directed flag complex. Directed flag complexes are based on flag complexes, also commonly referred to as clique complexes, which are an abstract simplicial complex with an underlying undirected graph structure [20]. Flag complexes arise naturally in many problems, including computing the Vietoris-Rips complex [36], analyzing brain networks [20], and studying small world networks [21]. Expanding the flag complex to the case of directed graphs allows researchers to encode directional information, and one can further add context from persistence that can contain geometric or time-based information. Lügehetmann et al. developed an open-source software FLAGSER for the fast computation of persistent homology of directed flag complexes in 2020 [20]. Our implementation of the present persistent directed flag Laplacian employs the underlying directed flag complex computed by FLAGSER.
The rest of this paper is organized as follows. In Section 2 we provide context on the directed flag complex and relevant homology tools as in [20]. In Section 3, we first construct a directed flag Laplacian, and then develop a persistent directed flag Laplacian method, with some examples. The relationship of the present formalism and earlier persistent path Laplacian and persistent hyperdigraph Laplacian are analyzed in Section 4. In Section 5 we apply the proposed persistent directed flag Laplacian to real-world data for a protein-ligand complex. A conclusion is given in Section 6.
2. Background on directed flag complex homology.
To establish notations, we review the relevant graph theory and topology definitions of directed flag complexes used in [20]. First we define the graphs we want to consider and show how to build the directed flag complex, followed by the homology of the complex. Finally, we develop persistence.
2.1. Directed flag complexes.
Definition 2.1. A directed graph, or digraph, is a pair where is a finite nonempty ordered set with elements called vertices and is a finite nonempty set of ordered pairs of vertices such that , called edges.
Note that if , it is possible, but not necessarily true that . Also note that this definition excludes self-loops of the form from the possible edges.
For studying the topology of these graphs, we must define additional structures on them, so we introduce the notations around abstract simplicial complexes.
Definition 2.2. An abstract simplicial complex on a set is a collection of nonempty finite subsets of , called simplices, such that if , then every nonempty is also in . An ordered simplicial complex has simplices that are ordered nonempty finite subsets of , although it is not necessary that have an underlying order. If are two simplices in a simplicial complex, we call a face of . Simplices with elements are called -simplices.
We focus our attention on a particular abstract simplicial complex of digraphs, the directed flag complex. We must specify its simplices.
Definition 2.3. A -clique of a directed graph is an ordered subset of vertices such that for we have . The directed flag complex is the ordered simplicial complex on with -simplices the -cliques of .
By this definition, all vertices of the graph are 1-cliques and all edges are 2-cliques. Observe that by this definition, the edges and vertices entirely determine the set of -cliques, and hence the entire complex. Although every directed flag complex is an ordered simplicial complex, the requirement that all -cliques are in the directed flag complex means we can construct ordered simplicial complexes, which are not directed flag complexes, by removing cliques with more than 2 vertices.
There are many sources of directed flag complexes both in nature and in theory (the C-Elegans brain, Erdős Rényi graphs) [20]. In Example 1 we describe a few digraphs and their directed flag complexes, and in Example 2 we describe ordered simplicial complexes on the same graphs as those in Example 1, which are not directed flag complexes.
Example 1. Let , and be digraphs as in Figure 1. We visualize edges in the directed flag complex with a yellow background around the edge, and 3-cliques by a wider, green background around the edges and , omitting to make visualization easier.
Figure 1.

Digraphs , and . The edges in the directed flag complex are visualized with a yellow background around the edge, and 3-cliques by a wider, green background around the edges and , omitting to make visualization easier.
The digraph has vertices (1-cliques) , edges (2-cliques) , and the 3-clique . Then is the ordered simplicial complex with 0-simplices the vertices, 1-simplices the edges, and the 2-simplex .
The digraph has 4 vertices , 6 edges 4 3–cliques , and the 4-clique . Note that this is the minimal example of a directed 4-clique. Then is the ordered simplicial complex with 0-simplices the vertices, 1-simplices the edges, 2-simplices the 4 3–cliques, and 3-simplex . If we let , then for since , and .
The digraph has 5 vertices , 7 edges , and 3-clique . Then is the ordered simplicial complex with 0-simplices the vertices, 1-simplices the edges, and 2-simplex . Note that neither nor are 3-cliques, since the edges and are not in .
Example 2. Let , and be digraphs as in Figure 1. Here we describe some ordered simplicial complexes that share a 1-skeleton with the directed flag complex on these graphs, but are distinct.
In , the only ordered simplicial complex with the same 1-skeleton as the directed flag complex consists of only the vertices and edges , with no 2-simplices.
In , we can have an ordered simplicial complex with vertices and edges , with no 2-simplices. We can obtain additional ordered simplicial complexes by adding any number of the possible 2-simplices or . The directed flag complex on is the unique ordered simplicial complex containing the 3-simplex , since all ordered subsets of must also be in the complex. By choosing 0, 1, 2, 3, or all 4 of the possible 2-simplices on , we can obtain ordered simplicial complexes that are distinct from the directed flag complex.
If we further relax the condition that our ordered simplicial complex must share its 1-skeleton with the directed flag complex, we can obtain many more simplicial complexes on the vertex set, although none of them are faithful to the graph. For example, on the vertices of , we could have a simplicial complex with vertices , edges , and 2-simplex . Note that not all edges of must be in the complex and that the edge is not an edge of .
2.2. Directed flag complex homology.
We can define a boundary operator and chain complex on ordered simplicial complexes in the usual way.
Definition 2.4. Let be a field and an ordered simplicial complex. For , let be the vector space over generated by -simplices in . The collection forms a chain complex with the boundary operator given by
where denotes the -simplex obtained by removing from the -simplex . We also take to be the 0 map. If , we call a cycle, and if , we call a boundary. Note that , which also implies all boundaries are cycles.
Since forms a chain complex, the -th homology of with coefficients in is given by . Let , which we call the -th Betti number.
Note that in the theoretical treatment of persistent homology, the field can be any field, but it is often taken to be or another finite field, as is done in [20], for which there are fast algorithms and implementations for computing persistence [12]. In this work we take to be the real numbers , because this allows us to compute the spectra of our Laplacian.
Example 3. Again consider the digraph to be as in Figure 1. We computed the ordered simplicial complex in Example 1, which gives rise to the chain groups,
The nonzero boundary operators can then be represented by the matrices
We can then compute the kernels and images of the relevant boundary maps,
Note that , and are all 0 for . From these, we compute the homology,
All other homologies are 0. Then the Betti numbers are , and .
This example demonstrates a directed flag complex with a cycle in that is a boundary and two that are not boundaries. It also demonstrates that as usual, measure the number of connected components.
2.3. Persistent directed flag complex homology.
Now that we have established homology of directed flag complexes, we introduce the relevant details of persistence, including the persistent Betti numbers. Let be the category of real numbers with morphisms given by if . Let be the category of directed flag complexes, with morphisms given by inclusion. A filtration is a functor , where is the inclusion . For clarity of notation, we denote and the boundary map of this chain complex to be . When the filtration is understood from context, we use . Then for a given filtration and dimension , we define the real -persistent homology to be
and the -persistent Betti number of to be . Again, if the filtration is understood, we use . We note that the coefficients do not need to be in general, but for the development of the persistent Laplacian we will use .
We similarly denote or simply if the filtration is clear from the context. The persistent Betti number corresponds to the number of nonzero classes in that are nonzero in .
We now give an example where persistent directed flag complex homology is different from computing the non-persistent directed flag complex homology on a sequence of graphs.
Example 4. In Fig. 2 we show a filtration of graphs, where the persistent directed flag complex homology has , while . This can be seen by the fact that only 1 connected component that existed in also exists in , hence , despite there being 2 total connected components in .
Figure 2.

Filtered directed flag complex with constant persistent Betti number , while the non-persistent Betti number is constant at . The area around edges are colored in yellow to signify that they form 1-simplices.
Alternatively, consider the induced map by inclusion , where and . Then , so . Similar computations apply to .
This example demonstrated that persistent Betti numbers provide a different perspective than calculating a sequence of non-persistent Betti numbers. Moreover, since the non-persistent Laplacian spectra recover the non-persistent Betti numbers, this motivates the need for the persistent Laplacian to recover the persistent Betti numbers.
3. Persistent directed flag Laplacian.
Persistent Betti numbers do not tell the full story of the persistence evolution. Another way to measure the changes with persistence is through persistent topological Laplacians like the persistent path Laplacian [31], topological hyperdigraph Laplacian[6], and persistent sheaf Laplacian [34]. In this work, we extend the persistent directed flag complex homology to a persistent directed flag Laplacian (PDFL). To do this, we construct the directed flag Laplacian and calculate its spectra. Then we construct the persistent version of the directed flag Laplacian and calculate its spectra.
3.1. Directed flag laplacian.
In this section, let be a digraph, be the directed flag complex of , and be the set of -cliques in . Also write . The Laplacian requires an adjoint of the boundary operator, so we define an inner product on the basis of ,
by
Next, this induces an inner product on the dual space such that for any ,
With respect to these inner products, there is an adjoint of . Then we may define the -th combinatorial directed flag Laplacian, or directed Flag Laplacian, by ,
where and if is the largest integer for which is nonempty, . With respect to the standard basis of , let be the matrix representation of . In the unweighted, non-persistent case, as shown in [22], the matrix representation of with respect to the standard basis of is . In the computing the matrix representation of the adjoint in the persistent case, we will need more care as shown in [22]. The matrix representation of the -th combinatorial directed flag Laplacian is
Then is positive semi-definite, with only real, non-negative eigenvalues, and is self-adjoint. Moreover, , which is the number of zero eigenvalues of , as shown in [30].
We may extract more information from than just the multiplicity of zero as an eigenvalue by examining the nonzero eigenvalues, called the non-harmonic spectra. If the dimension of is , denote the spectra of in non-decreasing order by
We now compute the Laplacians and spectra for the directed flag complex in Example 1, and show that the Betti numbers we previously computed agree with the harmonic spectra of the Laplacians.
Example 5. Using the graph and directed flag complex of in Example 1, we compute the Laplacians and spectra. The nonzero boundary maps from before are,
Then
From these matrices we can compute the spectra:
Note that some eigenvalues are repeated. From these spectra, we can see that , and , which agrees with our prior calculations.
3.2. Persistent directed flag laplacian.
We now move to the persistent case, where we have a filtration functor . To do this, we repeat the process of construction as in Section 3.1 with the added structure of a filtration. For building the persistent directed flag Laplacian, we will work more directly with the chain groups than is necessary in formulating persistent homology as in Section 2.3. To work with the chain groups, we note that for , the inclusion of directed flag complexes induces morphisms on chains , which also induces a morphism on homologies, .
Let and the inclusion . Then can be described as the chains in with boundaries contained entirely in . It would otherwise be possible that some element of has boundary intersecting . Then we define the persistent boundary operator . The following commutative diagram shows how the relevant maps fit into the context of the chain complexes.
![]() |
Define the -th -persistent directed flag Laplacian by
In the literature, the terms and are sometimes called the “up” and “down” Laplacians, respectively. A detailed proof that the harmonic spectra of correspond to the can be found in Theorem 2.7 of [22].
We need a matrix representation of with respect to a basis of . The choice of basis matters, as discussed in [22], because the matrix representation of depends on the inner product structure of , which is an inner product subspace of , and does not necessarily have a basis that is a restriction of the standard basis of .
If is a matrix with columns that form a basis of in and is written with respect to that basis, then the matrix representation of is . If we take our basis to be orthonormal, then is the identity matrix on , so the matrix representation of is simply the transpose . Algorithm 3.1 of [22] provides an explicit procedure that can be used for finding . We slightly modify this procedure by transforming the basis into an orthonormal one. This gives a matrix representation of with respect to an orthonormal basis of and the standard basis of . The matrix representation of is taken to be the identity on elements of and 0 otherwise.
This gives us a matrix representation of and a representation of the adjoint . Algorithm 3.1 of [22] uses a series of row and column operations that are equivalent to the matrix multiplication by and . Replacing the computation of in algorithm 3.1 of [22] with computing an orthonormal basis of is an asymptotically equal tradeoff in complexity. In practice, the slowest steps of computing the persistent directed flag Laplacian seem to be in building the complex and performing the column reduction over for finding .
The current work focuses primarily on the knowledge gained from extending persistent direct flag homology to a Laplacian theory rather than the algorithmic efficiency. Because our goal is theoretical in nature, multiple avenues for improvement in speed have been left on the table. We note that Algorithm 4.1 of [22] provides an alternative method to compute the persistent Laplacian using Schur complements, which the authors explain may have a better time complexity in special cases, including that of clique (flag) complexes.
Then the matrix representation of is
and we denote its spectra in non-decreasing order as
The smallest nonzero eigenvalue of is often of importance, so we denote it .
In Fig. 3, we display a filtration of directed flag complexes on a graph with three vertices, and in Fig. 4, we show the persistent Betti numbers and . When the edge is added in , the directed flag complex also gains a 2-cell, (0, 1, 2). There is a cycle created in , but it is also the boundary of . This cycle does not generate a homology class in the first homology group, so persistent Betti numbers cannot detect it, but shows a change.
Figure 3.

Filtration of a directed flag complex on a graph with three vertices. The area around edges are colored in yellow to signify that they form 1-simplices, and the area around the edges and is shaded green to highlight them as part of the 2-simplex .
Figure 4.

Persistent spectra of the graph in Fig. 3. The values of and are and , respectively, as filtered complex does not change after this point.
4. Discussion.
Here we place the directed flag Laplacian we have built in context with the path Laplacian described in [31], based on path homology as described in [14], and with the hyperdigraph Laplacian described in [6]. These other two topological Laplacians both generalize simplicial complexes, and hence generalize the directed flag complex, but in interesting ways.
4.1. Relationship with the path Laplacian.
Here we include some of the key components of the path Laplacian theory. The full details can be found in [31]. First, we define the terminology around paths. For a nonempty finite set , with elements called vertices, and nonnegative integer , an elementary -path on is any sequence of vertices. Let be the vector space over a field generated by the elementary -paths, with elements called -paths and the elements representing the elementary -paths are denoted by . The authors define the elementary (−1)–path to be the empty set, so the , and also define . A boundary operator defined in the usual way on produces a chain complex.
A path complex on is a nonempty collection of elementary paths such that
| (1) |
The set of -paths in is denoted .
The allowed -paths are given by
which is a subspace of . In order to form a good chain complex of allowed paths, one must further restrict to -invariant paths,
The path homology groups of the path complex are given by the homology of the chain complex
By taking and defining an appropriate inner product, one can obtain the adjoint and construct a Laplacian theory for path complexes in a manner similar to what we have done with the directed flag complex. Denote the path Laplacian by , with corresponding matrix representation . It is pointed out in [22] that the transpose is not always the correct matrix representation for the adjoint of the persistent boundary matrix; the same is true here, even in the non-persistent case, because is an inner product subspace of with a basis which may not always be written as a subset of the basis for . As with the directed flag Laplacian, we will write with respect to an orthonormal basis for , which resolves this issue.
It is noted in [31] and [15] that path complexes are designed to generalize abstract simplicial complexes, and hence any directed flag complex can be given an equivalent path complex. Note that does not necessarily contain all elementary -paths on ; it only needs to satisfy the conditions in Eq. 1. Although path complexes generalize abstract simplicial complexes, and hence the directed flag complex, the most natural path complex to use on a graph will not necessarily agree with the directed flag complex on .
For a digraph , it is most natural to consider the path complex consisting of all vertices, edges, and paths that can be built with those edges. Additional restrictions on the digraph are discussed in [31], but the present level of detail suffices to distinguish the directed flag Laplacian from the path Laplacian. This path complex will generally not agree with the directed flag complex on the same graph.
Consider the two digraphs in Fig. 5. The path Laplacians of these digraphs are computed in Table 1 and Table 2 of [31]. The calculation of in will require the orthonormal basis as discussed above, but the calculations for that do not involve are not impacted as the other matrices are written with respect to orthonormal bases. Calculations for are also not impacted by this change.
Figure 5.

Directed graphs and .
We recalculate the path Laplacians and spectra for in Table 1. The only difference between the spectra here and the non-normalized version in [31] is that here , instead of 4, and instead of 4. Otherwise the spectra are the same, including the Betti numbers. We also record the calculations of the path Laplacians and spectra for in Table 2, which are the same as in Table 2 of [31].
Table 1.
Path Laplacian and Spectra computation for graph in Fig. 5.
| (2) | |||
| {0, 2, 2, 4} | {2, 2, 2, 4} | {2} | |
| 1 | 0 | 0 |
Table 2.
Path Laplacian and Spectra computation for graph in Fig. 5.
| {0} | |||
| 0 × 0 empty matrix | |||
| {0, 2, 2, 4} | {0, 2, 4, 4} | ||
| 1 | 1 | 0 |
Notice that the path Laplacian of has while gives . Thus the path homology and path Laplacian can distinguish these graphs.
Now we compute the directed flag Laplacian for these graphs. The key difference between the path complexes and the directed flag complexes on these graphs is that 2-paths in a path complex do not correspond to 2-simplices (3-cliques) in a directed flag complex. In , the 2-paths and generate , and generates . However, in the directed flag complex of , there are no 3-cliques. We compute the directed flag Laplacian of in Table 3 and of in Table 4. Note that for both. The resulting spectra of and are identical, although has slight differences between the two. The directed flag Laplacian spectra alone do not detect the difference between these two digraphs.
Table 3.
Directed flag Laplacian calculations for graph in Fig. 5.
| {0, 2, 2, 4} | {0, 2, 2, 4} | |
| 1 | 1 |
Table 4.
Directed flag Laplacian calculations for graph in Fig. 5.
| {0, 2, 2, 4} | {0, 2, 2, 4} | |
| 1 | 1 |
However, if we consider the eigenvectors corresponding to these eigenvalues, we are able to distinguish the two digraphs. In Table 5 we show a linearly independent set of unit eigenvectors corresponding to the eigenvalues of , the matrix for the graphs , where . Ordering the eigenvalues as , and , we label the eigenvectors of for the graph corresponding to the eigenvalue , for and . Critically, the eigenvectors are either not eigenvectors of or, if they are, they may correspond to different eigenvalues. The same is true of the eigenvectors of . For example, corresponds to , but , i.e. it is an eigenvector with eigenvalue 2, not 0. This implies that two Laplacians have distinct kernels, which detects the difference between the graphs. We can also compute that are not eigenvectors of and are not eigenvectors of . This is another way to distinguish the two graphs.
Table 5.
Linearly independent unit eigenvectors of the directed flag Laplacian calculated in Tables 3 and 4 for graphs and of Fig. 5 corresponding to the eigenvalues . Eigenvectors are from the graph .
| i | 0 | 1 | 2 | 3 |
| 0 | 2 | 2 | 4 | |
We have shown in Tables 1, 2, 3, and 4 that the most natural path complex, the one composed of all paths in a directed graph , may have different spectra than the directed flag complex on the same directed graph. We can also see that they may agree, as in . Therefore, these are two distinct Laplacian theories for directed graphs, and one may be more appropriate for analyzing a given situation than the other. Considering only the eigenvalues, it may appear that the path Laplacian can sometimes distinguish graphs that the directed flag Laplacian cannot, but analyzing the eigenvectors of the directed flag Laplacian may provide enough insight to still detect the difference between the graphs. Their advantages in specific applications are to be further studied in the future.
4.2. Relationship with the hyperdigraph Laplacian.
It is also interesting to analyze the relation of the proposed method with the persistent hyperdigraph Laplacian [6]. We now describe the general idea of the hyperdigraph Laplacian as given in [6], so that one can better understand the proposed directed flag Laplacian.
Set to be a nonempty finite ordered set. A directed -hyperedge is a sequence of distinct elements in . A hyperdigraph is a pair , where is a set of hyperedges. With appropriate restrictions, one can define a homology theory on a subset of the span of -hyperedges, which is called the hyperdigraph homology . By taking coefficients in , one can define an inner product, obtain a dual to the boundary operator, and craft a Laplacian for a hyperdigraph . It has desirable properties similar to other topological Laplacians, e.g., it is self-adjoint, positive semidefinite, and , so this Laplacian also recovers the Betti numbers of the homology theory.
In Fig. 6, we show multiple hyperdigraphs with the same underlying digraph . The digraph has vertices (0), (1), and (2), edges (0, 1), (1, 2), and (0, 2). Then in we add the 2-hyperedge (012), in we add (120), and in we add (201). Hyperdigraphs allow us to add these arbitrary 2-hyperedges, while a directed flag complex would only have the 2-clique (0, 1, 2). Note that is a hyperdigraph corresponding to the directed flag complex on . This puts the extreme flexibility of the hyperdigraph on display, because adding any of the possible 2-hyperedges on the three vertices produces a valid hyperdigraph.
Figure 6.

A digraph with three vertices and edges, and the three possible hyperdigraphs and, that have this underlying graph, but with the added hyperedges (012),(120), and (201), respectively.
Hyperdigraphs generalize abstract simplicial complexes on a finite set, so any directed flag complex can be formulated as an equivalent hyperdigraph. A directed flag complex is entirely determined by the directed edges and vertices. Unlike with path complexes, the extreme flexibility of hyperdigraphs means there is no natural hyperdigraph on a vertex set that is solely determined by vertices and directed edges. This flexibility is one of the core benefits of hyperdigraphs, since its relations could depend on higher dimensional information than pairwise connections. One could assign a -hyperedge for each path of length with distinct vertices, but this would become a path complex on the directed graph.
The additional structure enforced on the directed flag complex means that it tells us about how highly connected the graph is. Because a simplex is only added when a directed clique is present, this may reduce the number of higher dimensional simplices one uses in studying the dataset. We suspect this is one of the reasons the present work is able to continue the filtration in Fig. 8 to a cutoff of 8Å, whereas the approach in Ref. [6] could only reach up to 4 Å. The other possible reason is due to implementation factors, such as our use of FLAGSER to build the underlying complex, which is very fast with a mostly C++ implementation. A more comprehensive comparison of these two formalisms is needed but is out of the scope of the present work. In particular, there is a pressing need to develop more efficient computational algorithms for PTLs.
Figure 8.

Spectra of protein-ligand complex with PDB ID 1a99, with restrictions on included atoms and filtered edges. Note that uses a larger vertical axis scale than and .
5. Application.
In this section, we demonstrate the PDFL by analyzing protein-ligand complex 1a99 from the Protein Data Bank (PDB) as shown in Fig. 7 for visualizing the complex. The same complex was studied in the literature [6]. To analyze the protein-ligand binding, we consider only C atoms of the protein within 8 Å of the ligand, and only C, N, O, and S atoms of the ligand. We use the distance between two atoms in this restricted complex as the filtration value at which an edge is added between the two atoms. We round these distances to the nearest 10−3. We add edges for the bonds within the ligand, but not for bonds within the protein. The direction of the edge is pointing toward the atom with the higher electronegativity of the pair; in the case of a C-C pair, we add both possible edges. We then compute and , where , and is the filtration parameter, and is the next filtration parameter greater than . We used a cutoff value of 8Å angstrom because it was sufficiently large to allow the non-harmonic spectra to stabilize, and for a clear pattern to emerge in the harmonic spectra, but the implementation would allow for reasonable computation time to determine the spectra associated with larger cutoffs in different systems.
Figure 7.

Protein-Ligand complex with PDBID 1a99.
The computed spectra are in Fig. 8. We can make several observations about this system. First, observe that tends to 1, since the final graph is fully connected. Next, observe that increases essentially monotonically; this is because the particular graph we produced does not have 3-simplices. It is challenging to have any 3-simplex because we do not add edges for within-protein atoms, and so there can only be 1 protein atom in any clique. To make a 3-simplex, the lone protein atom would need to have edges with 3 ligand atoms, that are all “bonded” to each other. This occurs rarely in nature.
Another notable feature of the spectra is that all are essentially constant until the filtration value is 3. From there on, decreases steadily, which reflects that we added edges at every filtration value, and it is not common for many edges to have the same filtration value, which comes from the distance between atoms, rounded to the nearest 10−3. We can see that rises rapidly from a filtration of 3 to 5, and then sharply decreases at 5 before continuing to increase, with some other perturbations. We can see that , and all change suddenly for filtration values around 3 and 5, with a sharp change at 5, but what is interesting is that they stabilize thereafter even as continues to change. This suggests that there are few significant interactions between the ligand molecule and protein atoms further than 5Å.
6. Conclusion.
Recently, persistent topological Laplacians (PTLs) have been proposed to overcome many drawbacks of classical persistent homology in topological data analysis (TDA), giving rise to a powerful new way to study the filtrations of simplicial complexes and other structures. One type of abstract simplicial complexes, directed flag complexes, commonly arises in studies of networks, including small world networks, neuron networks, and gene regulation networks. Therefore, a theory of persistent directed flag Laplacians (PDFL) may provide additional insight into challenging problems. This work builds such a theory and shows that it can provide a more nuanced representation of persistent changes in directed flag complexes than persistent Betti numbers alone can. Comparison is given to earlier persistent path Laplacians and persistent hyperdigraph Laplacians. We also demonstrate how PDFL can help analyze networks arising from real-world data, including a protein-ligand system. These examples illustrate the application potential of proposed PDFL to practice problems.
Acknowledgments.
This work was supported in part by NIH grants R01GM126189, R01AI164266, and R35GM148196, National Science Foundation grants DMS2052983, DMS-1761320, and IIS-1900473, NASA grant 80NSSC21M0023, Michigan State University Research Foundation, and Bristol-Myers Squibb 65109. The authors thank Dong Chen for technical assistance and Xiaoqi Wei for proof-reading.
Footnotes
Code availability. The codes are available at https://github.com/bdjones13/flagser-laplacian/.
REFERENCES
- [1].Adams H, Emerson T, Kirby M, Neville R, Peterson C, Shipman P, Chepushtanova S, Hanson E, Motta F and Ziegelmeier L, Persistence images: A stable vector representation of persistent homology, Journal of Machine Learning Research, 18 (2017), 1–35. [Google Scholar]
- [2].Ameneyro B, Maroulas V and Siopsis G, Quantum persistent homology, Journal of Applied and Computational Topology, 8 (2024), 1961–1980. [Google Scholar]
- [3].Bubenik P, Statistical topological data analysis using persistence landscapes, Journal of Machine Learning Research, 16 (2015), 77–102. [Google Scholar]
- [4].Cang Z and Wei G-W, TopologyNet: Topology based deep convolutional and multi-task neural networks for biomolecular property predictions, PLoS Computational Biology, 13 (2017),:e1005690. [Google Scholar]
- [5].Carlsson G, Topology and data, Bulletin of the American Mathematical Society, 46 (2009), 255–308. [Google Scholar]
- [6].Chen D, Liu J, Wu J and Wei G-W, Persistent hyperdigraph homology and persistent hyperdigraph Laplacians, Foundations of Data Science, 5 (2023), 558–588. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [7].Chen J, Qiu Y, Wang R and Wei G-W, Persistent Laplacian projected Omicron BA. 4 and BA. 5 to become new dominating variants, Computers in Biology and Medicine, 151 (2022), 106262. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [8].Chen J, Wang R, Wang M and Wei G-W, Mutations strengthened SARS-CoV-2 infectivity, Journal of Molecular Biology, 432 (2020), 5212–5226. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Chen J, Zhao R, Tong Y and Wei G-W, Evolutionary de Rham-Hodge method, Discrete and Continuous Dynamical Systems - B, 26 (2021), 3785–3821. [Google Scholar]
- [10].Chung FR and Langlands RP, A combinatorial Laplacian with vertex weights, Journal of Combinatorial Theory, Series A, 75 (1996), 316–327. [Google Scholar]
- [11].Desbrun M, Hirani AN, Leok M and Marsden JE, Discrete exterior calculus, preprint, 2005, arXiv:math/0508341. [Google Scholar]
- [12].Edelsbrunner H, Letscher D and Zomorodian A, Topological persistence and simplification, Discrete and Computational Geometry, 28 (2002), 511–533. [Google Scholar]
- [13].Ghrist R, Barcodes: The persistent topology of data, Bulletin of the American Mathematical Society, 45 (2008), 61–75. [Google Scholar]
- [14].Grigor’yan A, Jimenez R, Muranov Y and Yau S-T, Homology of path complexes and hypergraphs, Topology and its Applications, 267 (2019), 106877. [Google Scholar]
- [15].Grigor’yan AA, Lin Y, Muranov Yu. V. and Yau S-T, Path Complexes and their Homologies, Journal of Mathematical Sciences, 248 (2020), 564–599. [Google Scholar]
- [16].Gülen AB, Mémoli F, Wan Z and Wang Y, A Generalization of the persistent laplacian to simplicial maps, In Chambers EW and Gudmundsson J, editors, 39th International Symposium on Computational Geometry (SoCG 2023). Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl - Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 258 (2023), 1–17. [Google Scholar]
- [17].Hensel F, Moor M and Rieck B, A survey of topological machine learning methods, Frontiers in Artificial Intelligence, 4 (2021). [Google Scholar]
- [18].Horak D and Jost J, Spectra of combinatorial Laplace operators on simplicial complexes, Advances in Mathematics, 244 (2013), 303–336. [Google Scholar]
- [19].Liu J, Li J and Wu J, The algebraic stability for persistent Laplacians, preprint, 2023, arXiv:2302.03902. [Google Scholar]
- [20].Lütgehetmann D, Govc D, Smith JP and Levi R, Computing persistent homology of directed flag complexes, Algorithms, 13(2020), 19. [Google Scholar]
- [21].Masulli P and Villa AEP, The topology of the directed clique complex as a network invariant, SpringerPlus, 5 (2016), 388. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [22].Mémoli F, Wan Z and Wang Y, Persistent laplacians: Properties, algorithms and implications, SIAM Journal on Mathematics of Data Science, 4 (2022), 858–884. [Google Scholar]
- [23].Meng Z and Xia Kelin, Persistent spectral-based machine learning (PerSpect ML) for protein-ligand binding affinity prediction, Science Advances, 7 (2021), eabc5329. [Google Scholar]
- [24].Myers AD, Yesilli M, Tymochko S, Khasawneh F and Munch E, Teaspoon: A comprehensive python package for topological signal processing, TDA and Beyond, 2020. [Google Scholar]
- [25].Perea JA, Topological time series analysis, Notices of the American Mathematical Society, 66 (2019), 686–694. [Google Scholar]
- [26].Qiu Y and Wei G-W, Persistent spectral theory-guided protein engineering, Nature Computational Science, 3 (2023), 149–163. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [27].Shen L, Liu J and Wei G-W, Persistent Mayer homology and persistent Mayer Laplacian, Foundations of Data Science, 6 (2024), 584–612. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [28].Suwayyid F and Wei G-W, Persistent Dirac of paths on digraphs and hypergraphs, Foundations of Data Science, 6 (2024), 124–153. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [29].Townsend J, Micucci CP, Hymel JH, Maroulas V and Vogiatzis KD, Representation of molecular structures with persistent homology for machine learning applications in chemistry, Nature Communications, 11 (2020), 3230. [Google Scholar]
- [30].Wang R, Nguyen DD and Wei G-W, Persistent spectral graph, Int. J. Numer. Methods Biomed. Eng, 36 (2020), 27 pp. [Google Scholar]
- [31].Wang R and Wei G-W, Persistent path Laplacian, Foundations of Data Science, 5 (2023), 26–55. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [32].Wang R, Zhao R, Ribando-Gros E, Chen J, Tong Y and Wei G-W, HERMES: Persistent spectral graph software, Foundations of Data Science, 3(2021), 67–97. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [33].Wee J, Bianconi G and Xia K, Persistent Dirac for molecular representation, Scientific Reports, 13 (2023), 11183. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [34].Wei X and Wei G-W, Persistent sheaf Laplacians, Foundations of Data Science, 5 (2024), 26–55. [Google Scholar]
- [35].Xia K and Wei G-W, Persistent homology analysis of protein structure, flexibility and folding, International Journal for Numerical Methods in Biomedical Engineering, 30 (2014), 814–844. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [36].Zomorodian A, Fast construction of the Vietoris-Rips complex, Computers and Graphics, 34 (2010), 263–271. [Google Scholar]
- [37].Zomorodian A and Carlsson G, Computing persistent homology, Proceedings of the twentieth annual symposium on Computational Geometry, 33 (2005), 249–274. [Google Scholar]

