Next Article in Journal
Automated Acoustic Side-Channel Attack on Keyboard Inputs via Combined Video–Audio Analysis
Previous Article in Journal
An Online Operational Status Evaluation Method for Smart Meters in Power System Based on Cross-Modal Perception Using Large Language Models
Previous Article in Special Issue
ArchJIT: Just-in-Time Warning of Architecture Smells via Incremental Dependency Graph Evolution and Learning-Based Prioritization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Accelerating (k,l,η)-Core Query Processing in Directed Uncertain Graphs

1
School of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai 201620, China
2
School of Information and Intelligent Science, Donghua University, Shanghai 201620, China
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(16), 3508; https://doi.org/10.3390/electronics15163508
Submission received: 7 July 2026 / Revised: 3 August 2026 / Accepted: 5 August 2026 / Published: 7 August 2026
(This article belongs to the Special Issue Application of Data Management and Analytics in Software Engineering)

Abstract

Uncertain graphs are commonly used to model the uncertain relationships between entities that arise from experimental or measurement errors. In recent years, the analysis of uncertain graphs has attracted significant research attention, with the computation of ( k , η ) -cores emerging as a fundamental problem. However, existing studies on ( k , η ) -cores often neglect edge directions, resulting in weak correlations among vertices in the resulting subgraph. To address this limitation, we propose a direction-aware ( k , l , η ) -core model. Specifically, a ( k , l , η ) -core is defined as a maximal connected subgraph in which every vertex has a probability of at least η of having in-degree k and out-degree l . We first present an online algorithm based on a peeling strategy to compute ( k , l , η ) -cores. To improve query performance, we develop two indexing mechanisms, DUCS-E and DUCS, that accelerate query processing. DUCS-E stores probability information for all possible ( k , l , η ) -cores, enabling it to completely avoid redundant computations during query processing, but at the cost of large storage space. To mitigate this issue, we propose the lightweight DUCS index, which stores directional probability information separately, reducing storage overhead while still pruning many irrelevant vertices; however, it requires additional verification. To balance efficiency and storage, we further design a hybrid index that combines the strengths of both approaches. Finally, experimental evaluations on real-world datasets demonstrate the effectiveness of the proposed ( k , l , η ) -core model as well as the efficiency and scalability of our methods.

1. Introduction

In practical applications, graphs are commonly used to represent relationships among different entities, such as social networks [1,2], transportation networks [3], and biological networks [4,5]. Due to experimental errors or measurement inaccuracies, the relationships between entities often exhibit uncertainty and are typically modeled as uncertain graphs [6,7,8,9,10]. For example, in protein–protein interaction (PPI) networks [11], the probabilities associated with edges indicate the likelihood of interaction between protein molecules. In sensor networks [12], edge probabilities represent the reliability of information transmission between nodes. In social networks [13], edge probabilities reflect the degree of attention between users.
Cohesive subgraph mining is an important method for analyzing uncertain graphs, among which the ( k , η ) -core is one of the most popular uncertain cohesive subgraph models [14,15]. Compared with other uncertain cohesive subgraph models, such as the ( k , τ ) -clique [16,17] and the ( k , γ ) -truss [3,18,19,20], the  ( k , η ) -core model is simple and easy to compute. It can serve as a basis for uncertain graph analysis or as an input for other complex operations to simplify computation and improve efficiency, which has garnered widespread attention from researchers [12]. The ( k , η ) -core is a maximal subgraph that ensures that the probability that the degree of each vertex is at least k is at least η [12].
In practical applications, relationships between entities often exhibit directionality. The existing ( k , η ) -core model overlooks the directionality of edges, making it incapable of capturing dense subgraphs based on directional constraints. For example, Figure 1a depicts a social network in a real-world application, where the vertices represent users and the edges denote the attention among users. When using the ( k , η ) -core model without considering directions, only the 2-core subgraph in Figure 1b can be obtained, i.e.,  { v 1 , v 2 , v 3 , v 4 , v 5 } . However, in practical scenarios, relationships between vertices are often unidirectional, as shown in Figure 1a. It can be seen that no other user pays attention to v 3 , and  v 3 may be a zombie user (a virtual user manipulated by the software); v 5 does not actively pay attention to other users in this subgraph. Obviously, v 3 and v 5 do not have the same attention preference as other users in the subgraph, and they should not form a 2-core subgraph with v 1 , v 2 , and  v 4 .
To address the above problem, we propose the ( k , l , η ) -core model to obtain cohesive subgraphs in directed graphs by considering the directions of the edges. Given a directed uncertain graph, a  ( k , l , η ) -core is a maximal connected subgraph that satisfies that the probability that the in-degree of each vertex is at least k and the out-degree of each vertex is at least l is at least η . For instance, given k = 2 , l = 2 , and a probability threshold η = 0.3 , the  ( 2 , 2 , 0.3 ) -core that satisfies the condition in Figure 1a is { v 1 , v 2 , v 4 } . Compared to the 2-core in Figure 1b, the  ( k , l , η ) -core exhibits higher interactivity and tighter connections among vertices, excluding zombie users who are not followed by others and those who do not follow anyone within the subgraph.
While previous research has explored directed k-core queries [21,22,23], these studies did not take into account the probability information on edges. Additionally, existing methods for the ( k , η ) -core and directed k-core cannot be easily combined to solve the problem of ( k , l , η ) -core queries, necessitating the design of specialized solutions. Recently, Teng et al. [24] has explored the ( k , l , η ) -core model in the context of topic-aware most influential community search (TAMICS), their primary focus is on identifying the most influential community under a specific topic vector. To the best of our knowledge, there is no existing work that focuses solely on the fundamental problem of efficient and exact ( k , l , η ) -core query processing itself. Our work is orthogonal and complementary to [24]; we provide the first comprehensive study on efficiently answering ad-hoc ( k , l , η ) -core queries with a suite of indexing solutions, without the additional complexity of influence maximization.
In this paper, we first propose an online query algorithm based on the peeling idea. Similar to the algorithm for determining the k-core on deterministic graphs, it iteratively removes vertices that do not meet the constraints and updates the probability information of associated vertices. This process continues until every vertex in the induced subgraph satisfies the constraints. While this algorithm can solve ( k , l , η ) -core queries, it requires frequent computation and updating of vertex probability information, leading to lower query efficiency. To address this issue, we propose an index-based method to accelerate the computation of ( k , l , η ) -cores, called DUCS-E (Directed Uncertain Core Sequence Enhanced). DUCS-E uses a single array to simultaneously maintain the probability information for both the in-degree and out-degree of each vertex. During query processing, it can directly return the results. To address the excessive storage space of the DUCS-E index, we further propose an index that considers the constraints of vertex in-degree and out-degree separately: DUCS (Directed Uncertain Core Sequence). This index uses two arrays to store the subgraph probability information. During query processing, there is no need for frequent computation and updating of vertex probability information in the uncertain graph. It can prune many unsatisfied vertices, but it requires further validation, leading to a less noticeable improvement in efficiency. Finally, to deal with this problem, a hybrid index structure named Hybrid is proposed. The Hybrid index combines the advantages of DUCS and DUCS-E. It uses a single array to store the subgraph probability information for ( k , l , η ) -cores when parameters k and l are small. When parameters k and l are large, it employs two arrays to separately store subgraph probability information for each direction. Based on different query parameters, it selects an appropriate solving strategy. The Hybrid algorithm ensures efficient query performance while reducing the time and space overhead of index construction.
We clarify that the efficiency claim in this paper refers to the online query processing stage, where the goal is to answer a given ( k , l , η ) -core query as fast as possible. To achieve this, we shift the heavy computation to an offline preprocessing phase, during which the index structures are constructed. Although the offline index construction may take considerable time on large datasets, it is a one-time investment. Once built, the index enables rapid query responses for arbitrary ad-hoc queries. This design is particularly beneficial in real-world applications where the number of queries is large or the query workload is unpredictable. Our main contributions are summarized as follows:
  • We propose a family of algorithms for ( k , l , η ) -core computation. The first is a baseline online algorithm. To improve performance, we further propose three index-based algorithms: DUCS-E, DUCS, and Hybrid. The DUCS-E index stores probability information related to all ( k , l , η ) -cores, achieving the best query performance. However, DUCS-E suffers from a large index size. Considering this, we provide a lightweight index, DUCS, which maintains ( k , η ) -cores for forward and backward directions, respectively. Although it can reduce computation cost by pruning useless vertices, it still requires verification of the remaining vertices. Finally, we propose the Hybrid index, which utilizes the benefits of both DUCS and DUCS-E to make a trade-off between query performance, index construction time, and index size.
  • We conduct extensive experiments on large real-world datasets. The experimental results indicate that the three index-based approaches achieve a four-order-of-magnitude improvement in query efficiency compared to the online query algorithm.
The rest of this paper is organized as follows. Section 2 introduces basic knowledge and problem definitions. Section 3 presents the online query algorithm. Section 4, Section 5 and Section 6 provide detailed descriptions of the DUCS-E index, the DUCS index, and the Hybrid index, respectively, along with their associated algorithms. Section 7 primarily analyzes and summarizes the complexity of the various algorithms. Section 8 validates the proposed algorithms through experiments. Section 9 introduces related work. Finally, conclusions are presented.

2. Preliminaries

2.1. Uncertain Graphs

Given a deterministic graph G = ( V , E ) , where V and E represent the sets of vertices and edges, respectively. For a vertex u V , the set of neighbors of u in G is denoted as N ( u , G ) = { v V ( u , v ) E } , and the degree of u is d e g ( u , G ) = | N ( u , G ) | . When the context is clear, we abbreviate the neighbor set and degree as N ( u ) and d e g ( u ) . For any subset V V , the induced subgraph of V is denoted by G [ V ] = ( V , { ( u , v ) E u , v V } ) .
Definition 1 
(k-core). Given a deterministic graph G = ( V , E ) and a positive integer k, a k-core is a maximal connected induced subgraph G [ V ] such that every vertex has degree at least k, i.e., for all u V , d e g ( u , G [ V ] ) k .
Definition 2 
(Core number). Given a deterministic graph G = ( V , E ) , the core number of a vertex u V , denoted by c o r e ( u ) , is the maximum value of k for which u belongs to a k-core.
Let G = ( V , E , p ) be an uncertain graph, where p is a function that assigns to each edge e E a probability value in [ 0 , 1 ] . For each edge e = ( u , v ) E , p e denotes its probability. The neighbor set and degree of a vertex u V in G are denoted by N ( u , G ) and D e g ( u , G ) , respectively.
Following the literature [12], we assume that the edge probabilities are mutually independent. Under this assumption, the uncertain graph can be analyzed using possible-world semantics. There are 2 | E | possible instances G = ( V , E ) with E E . The probability of a particular instance graph G is given by
P r ( G ) = e E p e e E E ( 1 p e ) .
Definition 3 
( ( k , η ) -core). Given an uncertain graph G = ( V , E , p ) , a positive integer k, and a probability threshold η [ 0 , 1 ] , the  ( k , η ) -core is a maximal connected induced subgraph G [ V ] such that for every vertex u V , the probability that the degree of u in G [ V ] is at least k is not less than η:
u V , P r [ D e g ( u , G [ V ] ) k ] η .
For a vertex v, define G v k as the set of all possible world subgraphs of G in which the degree of v is at least k:
G v k = { G G d e g ( v , G ) k } .
Then, the probability that D e g ( v , G ) k is computed as
P r [ D e g ( v , G ) k ] = G G v k P r ( G ) .
Definition 4 
( η -degree). Given an uncertain graph G = ( V , E , p ) and a probability threshold η [ 0 , 1 ] , the η-degree of a vertex v V is the maximum integer k such that P r [ D e g ( v , G ) k ] η .
From Definition 4, the  η -degree can be obtained via
P r [ D e g ( v , G ) k ] = 1 i = 0 k 1 P r [ D e g ( v , G ) = i ] .
Reference [12] proposes a dynamic programming (DP) method for computing ( k , η ) -cores. Using Equation (3) and the DP approach, we can compute P r [ D e g ( v , G ) = i ] for each vertex v. Let E ( v , G ) = { e 1 , e 2 , , e s } , where s = D e g ( v ) , and let E s r ( v , G ) = { e 1 , e 2 , , e r } for r s . Define G v r = ( V , E ( E ( v , G ) E s r ( v , G ) ) , p ) as the subgraph obtained by removing the edges E ( v , G ) E s r ( v , G ) . The degree of v in G v r is D e g ( v , G v r ) . If the degree of v equals i, there are two possibilities: (i) e s exists and D e g ( v , G v s 1 ) = i 1 ; (ii) e s does not exist and D e g ( v , G v s 1 ) = i . Let Y v ( r , i ) denote the probability that the degree of v is exactly i in the subgraph G v r G . The DP recurrence is
Y v ( r , i ) = p e r · Y v ( r 1 , i 1 ) + ( 1 p e r ) · Y v ( r 1 , i ) .
The boundary conditions are
Y ( 0 , 0 ) = 1 , Y ( r , 1 ) = 0 , for r = 0 , , D e g ( v ) , Y ( r , j ) = 0 , for r = 0 , , D e g ( v ) , j = r + 1 , , i .
After removing an edge e E ( v ) , the updated probability that the degree of v equals i in the reduced graph is given by
P r [ D e g ( v E ( v ) { e } ) = i ] = P r [ D e g ( v ) = i ] p e P r [ D e g ( v E ( v ) { e } ) = i 1 ] 1 p e .
For the special case i = 0 , we have
P r [ D e g ( v E ( v ) { e } ) = 0 ] = P r [ D e g ( v ) = 0 ] 1 p e .

2.2. Directed Uncertain Graphs

When dealing with directed uncertain graphs, we must revisit the previous definitions to incorporate edge directions.
Let G d = ( V , E , p ) be a directed uncertain graph. For a vertex u V , the out-neighbor set is N out ( u , G d ) = { v V ( u , v ) E } and the in-neighbor set is N in ( u , G d ) = { v V ( v , u ) E } . We abbreviate these as N out ( u ) and N in ( u ) when the context is clear. The out-degree and in-degree of u are denoted by D e g out ( u , G d ) and D e g in ( u , G d ) , respectively. The underlying deterministic graph is G d = ( V , E ) .
Definition 5 
(k-corein, l-coreout). Given a directed deterministic graph G d = ( V , E ) and two positive integers k and l, a k-corein (resp. l-coreout) is a maximal connected induced subgraph G d on V such that every vertex has in-degree (resp. out-degree) at least k (resp. l). That is,
u V , D e g in ( u , G d ) k ( resp . D e g out ( u , G d ) l ) .
Definition 6 
( core in , core out ). Given a directed deterministic graph G d = ( V , E ) , the in-degree core number core in ( u ) is the maximum k such that u belongs to a k-corein. Similarly, the out-degree core number core out ( u ) is the maximum l such that u belongs to an l-coreout.
Based on Definitions 5 and 6, we now define the ( k , l , η ) -core.
Definition 7 
( ( k , l , η ) -core). Given a directed uncertain graph G d = ( V , E , p ) , two positive integers k and l, and a probability threshold η [ 0 , 1 ] , the  ( k , l , η ) -core is a maximal connected induced subgraph G d on V such that every vertex has probability at least η of having in-degree k and out-degree l :
u V , min P r [ D e g in ( u , G d ) k ] , P r [ D e g out ( u , G d ) l ] η .
Remark 1. 
The in-degree and out-degree of a vertex are determined by two disjoint edge sets. Under the independent edge probability model, the random variables Deg i n ( v ) and Deg o u t ( v ) are independent. However, for a vertex to be considered a cohesive part of a directed core, it must play a significant role in both directions. Therefore, we impose constraints on both marginal probabilities. The min operator is deliberately employed to enforce the “shortboard effect”: the overall reliability of a vertex in the core is limited by its weakest direction. This guarantees that every vertex in the resulting subgraph is statistically significant as both a source and a target of connections, ensuring strong mutual engagement within the community.
Example 1. 
Consider the directed uncertain graph in Figure 1a. For  k = 2 , l = 2 , and η = 0.3 , the connected subgraph G d = G d [ { v 1 , v 2 , v 4 } ] satisfies the ( 2 , 2 , 0.3 ) -core condition. In this subgraph:
  • Vertex v 1 has two in-edges and two out-edges; P r [ D e g in ( v 1 , G d ) 2 ] = 0.4 , P r [ D e g out ( v 1 , G d ) 2 ] = 0.42 , and  min ( 0.4 , 0.42 ) = 0.4 0.3 .
  • Vertex v 2 : P r [ D e g in ( v 2 , G d ) 2 ] = 0.54 , P r [ D e g out ( v 2 , G d ) 2 ] = 0.3 , min ( 0.3 , 0.54 ) = 0.3 0.3 .
  • Vertex v 4 : P r [ D e g in ( v 4 , G d ) 2 ] = 0.42 , P r [ D e g out ( v 4 , G d ) 2 ] = 0.72 , min ( 0.42 , 0.72 ) = 0.42 0.3 .
Moreover, G d is maximal: adding v 3 would give P r [ D e g out ( v 3 , G d ) 2 ] = 0.48 > 0.3 but P r [ D e g in ( v 3 , G d ) 2 ] = 0 , so min ( 0.48 , 0 ) = 0 < 0.3 ; thus v 3 does not satisfy the constraint.
Problem Definition. 
Given a directed uncertain graph G d = ( V , E , p ) , two positive integers k and l, and a probability threshold η [ 0 , 1 ] , return all ( k , l , η ) -cores in G d .

3. The Online Algorithm

The online query algorithm is based on the peeling idea. It iteratively removes vertices that do not meet the constraints and updates the probability information of the associated vertices until every vertex in the induced subgraph satisfies the constraints, at which point the execution terminates and returns the results. For directed uncertain graphs, however, the in-degree and out-degree of vertices must be considered separately to solve the corresponding core decomposition problem. We introduce the following definitions.
Definition 8 
( ( k , η ) - core in , ( l , η ) - core out ). Given a directed uncertain graph G d = ( V , E , p ) and a probability threshold η [ 0 , 1 ] , a  ( k , η ) - core in (resp. ( l , η ) - core out ) is a maximal connected induced subgraph G d on vertex set V such that for every vertex u V , the probability that its in-degree (resp. out-degree) is at least k (resp. l) is at least η. That is,
u V , P r [ D e g in ( u , G d ) k ] η ( resp . P r [ D e g out ( u , G d ) l ] η ) .
Definition 9 
( η - D e g in , η - D e g out ). Given a directed uncertain graph G d = ( V , E , p ) and a probability threshold η [ 0 , 1 ] , the η- D e g in and η- D e g out of a vertex v V are the maximum integers k and l, respectively, satisfying
P r [ D e g in ( v , G d ) k ] η and P r [ D e g out ( v , G d ) l ] η .
Definition 10 
( η - core in , η - core out ). Given a directed uncertain graph G d = ( V , E , p ) and a probability threshold η [ 0 , 1 ] , the η- c o r e in and η- c o r e out of a vertex u V are the maximum values of k and l, respectively, such that u belongs to a ( k , η ) - c o r e in and an ( l , η ) - c o r e out .
According to Definitions 9 and 10, together with Equations (3) and (6), we can compute and update the values of η - D e g in and η - D e g out for each vertex in the directed uncertain graph.
The ( k , l , η ) -core online query algorithm is presented in Algorithm 1. Before checking whether a vertex satisfies the ( k , l , η ) -core constraint, we iteratively remove vertices that do not meet the structural constraints D e g out < l or D e g in < k (lines 1–8). Then, we compute η - D e g in and η - D e g out for the remaining vertices using Equation (3) (lines 9–10). The algorithm continues by iteratively removing vertices and their incident edges that do not satisfy the ( k , l , η ) -core constraint, updating the η - D e g in and η - D e g out of neighboring vertices according to Equation (6) (lines 11–18). Finally, all connected subgraphs that satisfy the constraints are stored in the result set S (lines 19–22).
Electronics 15 03508 i001
Example 2. 
Consider the directed uncertain graph shown in Figure 1a. Suppose k = 1 , l = 1 , and the probability threshold η = 0.7 (lines 1-8). First, we compute D e g in ( v 3 ) = 0 < 1 , thus remove v 3 . The remaining vertices have D e g in and D e g out satisfying the conditions (lines 9–10). Next, we calculate
P r [ D e g in ( v 5 ) 1 ] = 1 i = 0 1 P r [ D e g in ( v 5 ) = 0 ] = 1 0.4 × 0.1 = 0.96 0.7 ,
and
P r [ D e g in ( v 5 ) 2 ] = 0.6 × 0.9 = 0.54 < 0.7 .
Therefore, 0.7 - D e g in ( v 5 ) = 1 . Similarly, we obtain 0.7 - D e g out ( v 5 ) = 0 and the corresponding values for the remaining vertices (lines 11–18). Although the in-degree probability of v 5 satisfies the condition, its out-degree does not. Hence, we remove v 5 and its incident edges. We then update the out-degree probabilities of v 2 and v 4 , and the in-degree probability of v 6 using Equation (6). After updating, all vertices in the remaining two maximal connected induced subgraphs C 1 = { v 1 , v 2 , v 4 } and C 2 = { v 6 , v 7 } satisfy the constraint. We store these final subgraphs that satisfy the ( 1 , 1 , 0.7 ) -core condition in the result set S = { { v 1 , v 2 , v 4 } , { v 6 , v 7 } } (lines 19–22).
Theorem 1. 
Given a directed uncertain graph G d = ( V , E , p ) , the time complexity of Algorithm 1 is
O | V | + v V max η - D e g in ( v ) , η - D e g out ( v ) · max D e g in ( v ) , D e g out ( v ) .
Proof. 
First, Algorithm 1 takes O ( | V | ) time to iteratively delete vertices whose in-degree or out-degree does not satisfy the structural constraint (lines 1–8). Then, according to [12], the time to compute η - D e g in and η - D e g out for each remaining vertex is O v V ( η - D e g in ( v ) · D e g in ( v ) ) and O v V ( η - D e g out ( v ) · D e g out ( v ) ) (lines 9–10). Finally, we need to delete all vertices that do not satisfy the query conditions and iteratively update the η - D e g in and η - D e g out values. According to [12], the time to update these values is O v V max ( D e g in ( v ) , D e g out ( v ) ) (lines 11–19). Therefore, the overall time complexity of Algorithm 1 is
O | V | + v V max η - D e g in ( v ) , η - D e g out ( v ) · max D e g in ( v ) , D e g out ( v ) .
   □
The ( k , l , η ) -core online query algorithm produces accurate result sets, but it is highly dependent on the parameter settings, which limits its universality. Although the online algorithm can be optimized using dynamic programming, the cost of computing and updating the η -degree for each vertex remains high.

4. DUCS-E Index

4.1. Index Structure

The online query algorithm repeatedly calculates the probability values of vertices, leading to low query efficiency. To avoid redundant calculations, we consider maintaining the probability information of each vertex.
Definition 11. 
Given a directed uncertain graph G d = ( V , E , p ) and two positive integers k and l, the value η ( k , l ) ( v , G d ) for a vertex v V is defined as the maximum probability η such that v belongs to a ( k , l , η ) -core.
Thus, η ( k , l ) ( v , G d ) represents the highest probability threshold for which vertex v satisfies the constraints k and l. Given k, l, and  η , if  η ( k , l ) ( v , G d ) η , then v belongs to the ( k , l , η ) -core.
Lemma 1. 
Given a directed uncertain graph G d = ( V , E , p ) , two positive integers k and l, and probability thresholds 0 η η 1 , if there exist subgraphs G d 1 = ( k , l , η ) -core and G d 2 = ( k , l , η ) -core, then G d 2 G d 1 .
Proof. 
Consider a directed uncertain graph G d = ( V , E , p ) . Suppose G d 1 is a ( k , l , η ) -core and G d 2 is a ( k , l , η ) -core with η η . According to Definition 5, for every v V G d 2 ,
min P r [ D e g in ( v , G d ) k ] , P r [ D e g out ( v , G d ) l ] η η .
Hence, G d 2 also satisfies the constraints of a ( k , l , η ) -core, implying V G d 2 V G d 1 . Therefore, G d 2 G d 1 .    □
According to Lemma 1 and Definition 11, we can determine whether a vertex v V belongs to a ( k , l , η ) -core based on the value of η ( k , l ) ( v , G d ) . Thus, by storing η ( k , l ) ( v , G d ) for all vertices, we can efficiently answer all possible ( k , l , η ) -core queries.
The DUCS-E index stores information for all ( k , l , η ) -core combinations with k [ 1 , k max ] and l [ 1 , l max ] . By Lemma 1, the subgraphs corresponding to different η values are nested. Therefore, we can process vertices in ascending order of η values step by step, avoiding simultaneous storage of all satisfying nodes and thus saving memory.
Example 3. 
Consider the directed uncertain graph G d shown in Figure 1a. The DUCS-E index is illustrated in Figure 2. Take vertex v 1 as an example. For  k = 1 and l = 1 , we have η ( 1 , 1 ) ( v 1 , G d ) = 0.8 , meaning that v 1 satisfies the constraints of a ( 1 , 1 , 0.8 ) -core. If η > 0.8 , then v 1 does not satisfy the ( 1 , 1 , η ) -core constraints.

4.2. Query Processing

The DUCS-E index simultaneously accounts for both in-degree and out-degree constraints of each vertex, eliminating the need to recompute vertex probabilities during query processing.
The DUCS-E index-based query algorithm is presented in Algorithm 2. We first initialize the storage array (line 1). Then, we invoke the DUCS-E index construction algorithm to store all potential ( k , l , η ) -cores in the array (line 2). Next, we traverse the array to identify vertices satisfying the query conditions (lines 5–7). Finally, we return the maximal connected subgraph induced by these vertices (lines 8–10).
Electronics 15 03508 i002
Example 4. 
Based on the DUCS-E index shown in Figure 2, consider the query parameters k = 2 , l = 1 , and  η = 0.4 . First, from the stored array we identify the set of vertices { v 1 , v 2 , v 3 , v 4 , v 5 , v 6 , v 7 } that satisfy the conditions k = 2 and l = 1 . Within this set, we then select the subset { v 1 , v 2 , v 4 } where the stored probability values are at least 0.4 . Finally, we output the maximal connected induced subgraph G d [ { v 1 , v 2 , v 4 } ] that satisfies the given constraints.
Theorem 2. 
Given a directed uncertain graph G d = ( V , E , p ) , the time complexity of Algorithm 2 is O v V max ( D e g out ( v ) , D e g in ( v ) ) + | V | .
Proof. 
Traversing the index array to find vertices satisfying the conditions takes O ( | V | ) time. Then, obtaining the vertex sets of each connected component requires O v V max ( D e g out ( v ) , D e g in ( v ) ) time. Therefore, the total time complexity of Algorithm 2 is O v V max ( D e g out ( v ) , D e g in ( v ) ) + | V | .    □

4.3. Index Construction

According to Definition 11, all information of ( k , l , η ) -cores for k [ 1 , k max ] and l [ 1 , l max ] is stored in the sequence array Seq η using a bottom-up approach. Algorithm 3 details the construction of the DUCS-E index.
First, we perform core decomposition on the deterministic graph to obtain k max and l max (line 1). Then, for each pair ( k , l ) , we construct an index covering all relevant information (lines 5–24). For each ( k , l ) combination, dynamic programming is used to compute P r in ( v ) and P r out ( v ) for every vertex v, and we store the minimum in P r ( v ) (lines 8–11). We identify the vertex v with the smallest P r ( v ) , delete v and its incident edges (lines 13–15), and iteratively update P r in and P r out for the neighbors of v (lines 17–22). The value min ( P r in ( v ) , P r out ( v ) ) for vertices satisfying the constraints is stored in the temporary array Pr (lines 23–24). This process continues until all ( k , l ) pairs are processed, storing η ( k , l ) ( v , G d ) for each vertex. Finally, the DUCS-E index is obtained.
Electronics 15 03508 i003
Theorem 3. 
Given a directed uncertain graph G d = ( V , E , p ) , the time complexity of Algorithm 3 is
O ( k max · l max ) · max ( k max , l max ) · ( | V | log | V | + | E | ) .
Proof. 
Computing core in and core out for each vertex in the deterministic graph takes O ( max ( | E in | , | E out | ) ) , where | E in | and | E out | are the total in-degree and out-degree of G d (line 1). According to [12], calculating η - D e g in and η - D e g out requires O ( v V ( η - D e g in ( v ) · D e g in ( v ) ) ) and O ( v V ( η - D e g out ( v ) · D e g out ( v ) ) ) time (lines 8–11). Finding the vertex with the minimum value and deleting it costs O ( | V | log | V | ) (lines 13–14). Updating P r in and P r out takes O ( v V max ( D e g in ( v ) , D e g out ( v ) ) ) (lines 17–22). Since max ( D e g in ( v ) , D e g out ( v ) ) max ( k max , l max ) , the overall time complexity follows.    □
Theorem 4. 
Given a directed uncertain graph G d = ( V , E , p ) , the space complexity of Algorithm 3 is O v V ( core in ( v ) · core out ( v ) ) .
Proof. 
For each vertex v V , the storage space Seq ( v ) depends on both core in ( v ) and core out ( v ) . In the worst case, the space consumed per vertex is core in ( v ) · core out ( v ) . Thus, the total space complexity is O v V ( core in ( v ) · core out ( v ) ) .    □

5. DUCS Index

5.1. Index Structure

While the query algorithm based on the DUCS-E index significantly improves query efficiency, its index size is prohibitively large because it stores probability thresholds for all combinations of k and l values. We can substantially reduce the index storage by storing probability thresholds for the two directions separately. To this end, based on Definition 11, we first define probability thresholds for directional constraints.
Definition 12 
( η k ( v , G d ) and η l ( v , G d ) ). Given a directed uncertain graph G d = ( V , E , p ) and two positive integers k and l, η k ( v , G d ) denotes the maximum η such that v belongs to a ( k , η ) - c o r e in , and η l ( v , G d ) denotes the maximum η such that v belongs to a ( l , η ) - c o r e out .
Thus, η k ( v , G d ) (resp. η l ( v , G d ) ) is the highest probability value for which v can be part of a ( k , η ) - core in (resp. ( l , η ) - core out ). If for given k (or l) and η we have η k ( v , G d ) η (or η l ( v , G d ) η ), then v certainly belongs to the corresponding core.
Lemma 2. 
Given a directed uncertain graph G d = ( V , E , p ) , two positive integers k , l , and probability thresholds 0 η η 1 ,
  • If there exist subgraphs G d 1 = ( k , η ) - core in and G d 2 = ( k , η ) - core in , then G d 2 G d 1 ;
  • If there exist subgraphs G d 3 = ( l , η ) - core out and G d 4 = ( l , η ) - core out , then G d 4 G d 3 .
Proof. 
Consider a directed uncertain graph G d = ( V , E , p ) . Suppose G d 1 is a ( k , η ) - core in and G d 2 is a ( k , η ) - core in with η η . By Definition 8, for every v V G d 2 , we have P r [ D e g in ( v ) k ] η η . Hence, G d 2 also satisfies the ( k , η ) - core in constraints, so V G d 2 V G d 1 and consequently G d 2 G d 1 . The proof for out-degree cores is analogous.    □
According to Lemma 2 and Definition 12, we can test whether a vertex v belongs to a ( k , η ) - core in or ( l , η ) - core out using the stored values η k ( v , G d ) and η l ( v , G d ) . Thus, we only need to store these values for all vertices to answer all possible queries.
The DUCS index comprises two sequence arrays Seq η in and Seq η out . They store, for each vertex, all possible values of η k ( v , G d ) and η l ( v , G d ) , which correspond to all possible ( k , η ) - core in and ( l , η ) - core out . Since k and l are bounded, we only need to consider 1 k k max and 1 l l max , where k max = max v V core in ( v ) and l max = max v V core out ( v ) . Following the nesting property from Lemma 2, the values are stored in increasing order of η k ( v , G d ) and η l ( v , G d ) to reduce redundant storage.
Example 5. 
Consider the directed uncertain graph G d in Figure 1a. The DUCS index is shown in Figure 3. Take vertex v 1 as an example. For  k = 1 , η 1 ( v 1 , G d ) = 0.9 , meaning v 1 satisfies the ( 1 , 0.9 ) - core in constraint. If η > 0.9 , v 1 does not satisfy the ( 1 , η ) - core in constraint. For l = 1 , η 1 ( v 1 , G d ) = 0.8 , so v 1 satisfies the ( 1 , 0.8 ) - core out constraint; if η > 0.8 , it does not. From Figure 3, we see that the ( 1 , 0.8 ) - core in is { v 1 , v 2 , v 4 , v 5 , v 6 , v 7 } and the ( 2 , 0.3 ) - core out is { v 1 , v 2 , v 3 , v 4 } .

5.2. Query Processing

In a directed uncertain graph, edge probabilities may differ between directions for the same vertex. Therefore, we must analyze the inclusion relationships among the ( k , l , η ) -core, ( l , η ) - core out , and  ( k , η ) - core in .
Theorem 5. 
Given a directed uncertain graph G d = ( V , E , p ) and query parameters k, l, η, suppose there exist subgraphs G d 1 = ( k , l , η ) -core, G d 2 = ( k , η ) - core in , and  G d 3 = ( l , η ) - core out . Then:
1. 
G d 1 G d 2 and G d 1 G d 3 ;
2. 
V G d 1 ( V G d 3 V G d 2 ) ;
3. 
G d 2 and G d 3 are not necessarily subsets of G d 1 .
Proof. 
If G d 1 is a ( k , l , η ) -core, then for every v V G d 1 ,
min P r [ D e g in ( v , G d ) k ] , P r [ D e g out ( v , G d ) l ] η .
In particular, P r [ D e g in ( v , G d ) k ] η , so G d 1 satisfies the ( k , η ) - core in constraints. Similarly, it satisfies the ( l , η ) - core out constraints. Thus, V G d 1 ( V G d 3 V G d 2 ) , establishing (i) and (ii).
Now consider (iii) by contradiction. Suppose G d 2 (a ( k , η ) - core in ) is a subset of G d 1 (a ( k , l , η ) -core). Then, for every v V G d 2 ,
min P r [ D e g in ( v , G d ) k ] , P r [ D e g out ( v , G d ) l ] η ,
but the definition of a ( k , η ) - core in only guarantees P r [ D e g in ( v , G d ) k ] η , not necessarily the out-degree condition. Hence, G d 2 may not be contained in G d 1 . The same holds for G d 3 .    □
According to Theorem 5, the result obtained directly from the DUCS index is only an upper bound of the true ( k , l , η ) -core. Therefore, further verification using the online algorithm (Algorithm 1) is required to obtain the exact result.
The DUCS-based query algorithm is presented in Algorithm 4. We first initialize the storage arrays and invoke the DUCS index construction to store vertices satisfying η k ( v , G d ) η and η l ( v , G d ) η (lines 1–3). Then, we collect the candidate vertices (lines 4–7). Finally, we call Algorithm 1 to verify the candidate set and obtain the exact result (line 8).
Example 6. 
Consider G d in Figure 1a with k = 2 , l = 1 , η = 0.4 . The online algorithm yields the connected induced subgraph G d [ { v 1 , v 2 , v 4 } ] . From the DUCS index in Figure 3, vertex v 5 belongs to both ( 2 , 0.4 ) - core in and ( 1 , 0.6 ) - core out (which is a subset of ( 1 , 0.4 ) - core out ), but  v 5 does not satisfy the ( 2 , 1 , 0.4 ) -core constraints. The set of vertices satisfying both ( 2 , 0.4 ) - core in and ( 1 , 0.4 ) - core out is V c = { v 1 , v 2 , v 4 } , a subset of { v 1 , v 2 , v 4 , v 5 } .
Electronics 15 03508 i004
Theorem 6. 
Given a directed uncertain graph G d = ( V , E , p ) and parameters k, l, η, the time complexity of Algorithm 4 is
O | V | + v V max η - D e g in ( v ) , η - D e g out ( v ) · max D e g in ( v ) , D e g out ( v ) ,
where V is the set of vertices that require further validation by Algorithm 1.
Proof. 
Searching the arrays r e s in and r e s out for vertices satisfying the conditions takes O ( | V | ) time (lines 5–7). By Theorem 1, validating the candidate vertex set V using the online algorithm costs O | V | + v V max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) ) . Hence, the total complexity follows.    □

5.3. Index Construction

Following Definition 12, we construct the sequences Seq η in and Seq η out in a bottom-up manner for k [ 1 , k max ] and l [ 1 , l max ] .
Algorithm 5 presents the DUCS index construction. For clarity, we denote P r in ( v ) = P r [ D e g in ( v , G ) k ] and P r out ( v ) = P r [ D e g out ( v , G ) l ] . First, we compute core in and core out for each vertex (line 1). Then, we initialize arrays Seq η in ( v ) and Seq η out ( v ) (line 2). Next, we compute P r in ( v ) and P r out ( v ) based on the k-core and l-core decompositions, and use the SEQ procedure to obtain the index arrays (lines 3–10). We then compute η k ( v , G d ) and η l ( v , G d ) for each vertex (lines 12–26). Specifically, we repeatedly remove the vertex v with the smallest P r in or P r out , delete its incident edges, and update the probabilities of affected neighbors. Finally, we return the stored values (line 27).
Electronics 15 03508 i005
Theorem 7. 
Given a directed uncertain graph G d = ( V , E , p ) , the time complexity of Algorithm 5 is
O k max 2 | E in | + l max 2 | E out | + ( k max + l max ) · | V | log | V | ,
where | E in | and | E out | are the total in-degree and out-degree of G d .
Proof. 
Computing core in and core out takes O ( max ( | E in | , | E out | ) ) (line 1). According to [12], calculating η - D e g in and η - D e g out costs O ( v V ( η - D e g in ( v ) · D e g in ( v ) ) ) and O ( v V ( η - D e g out ( v ) · D e g out ( v ) ) ) (lines 5–6 and 8–9). Selecting the minimum value and deleting a vertex costs O ( | V | log | V | ) (lines 15–18). Updating P r in and P r out for vertices costs O ( v V D e g in ( v ) ) and O ( v V D e g out ( v ) ) (lines 20–26). Since η - D e g in ( v ) k max and D e g out ( v ) l max , the total complexity follows.    □
Theorem 8. 
Given a directed uncertain graph G d = ( V , E , p ) , the space complexity of Algorithm 5 is
O v V core in ( v ) + core out ( v ) .
Proof. 
For each v V , we maintain two arrays Seq η in ( v ) and Seq η out ( v ) whose lengths are at most core in ( v ) and core out ( v ) , respectively. Hence, the total space is bounded by the sum over all vertices of these two core numbers.    □

6. Hybrid Index

6.1. Index Structure

As discussed in the previous sections, the DUCS-E index suffers from prohibitively large construction overhead, while the DUCS index requires additional verification, limiting its efficiency gains. Both issues are closely related to the query parameters k and l. To further analyze this, we introduce Lemma 3.
Lemma 3. 
Given a directed uncertain graph G d = ( V , E , p ) , let V ( k , l , η ) denote the vertex set of a ( k , l , η ) -core. Then:
1. 
if k 1 < k 2 , then V ( k 2 , l , η ) V ( k 1 , l , η ) ;
2. 
if l 1 < l 2 , then V ( k , l 2 , η ) V ( k , l 1 , η ) .
Proof. 
For case (i): suppose G d 1 = ( k 1 , l , η ) -core and G d 2 = ( k 2 , l , η ) -core with k 1 < k 2 . By Definition 5, for every v V G d 2 ,
min P r [ D e g in ( v , V G d 2 ) k 2 k 1 ] , P r [ D e g out ( v , V G d 2 ) l ] η .
Hence, G d 2 also satisfies the ( k 1 , l , η ) -core constraints, so V G d 2 V G d 1 , i.e.,  V ( k 2 , l , η ) V ( k 1 , l , η ) . Case (ii) is proved similarly.    □
According to Lemma 3, decreasing either k or l enlarges the vertex set of the ( k , l , η ) -core. Consequently, as shown in Theorem 2, smaller k and l lead to a larger upper bound when using the DUCS index, incurring higher verification cost. Moreover, Theorems 7 and 8 indicate that the DUCS-E index construction is time-consuming and memory-intensive. To overcome these drawbacks, we propose a hybrid index that combines DUCS and DUCS-E.
Example 7. 
Both DUCS and DUCS-E indices are built for all k [ 1 , k max ] and l [ 1 , l max ] . We choose two threshold parameters ε in and ε out to partition the ranges, as illustrated in Figure 4. Specifically,
k [ 1 , ε in ] [ ε in + 1 , k max ] , l [ 1 , ε out ] [ ε out + 1 , l max ] .
For k [ 1 , ε in ] and l [ 1 , ε out ] , only the DUCS-E index is stored; for k [ ε in + 1 , k max ] and l [ ε out + 1 , l max ] , only the DUCS index is stored.
Obviously, the Hybrid index is a generalization of the previously proposed DUCS-E and DUCS indexes: by adjusting the thresholds ε in and ε out to their extreme values, Hybrid reduces to DUCS-E when ε in = k max and ε out = l max , and reduces to DUCS when ε in = 0 and ε out = 0 . For intermediate threshold values, Hybrid achieves a tunable balance between query efficiency and index overhead. Thus, DUCS-E and DUCS can be viewed as two extreme points on the time-space trade-off spectrum, with Hybrid providing a practical and flexible solution that covers the entire spectrum.

6.2. Query Processing

Given query parameters k, l and thresholds ε in , ε out , three query types arise:
( a ) k ε in and l ε out ; ( b ) k > ε in and l > ε out ; ( c ) ( k ε in and l > ε out ) or ( k > ε in and l ε out ) .
Different strategies are applied:
  • Type (a): directly use the DUCS-E index to obtain the exact result.
  • Type (b): use the DUCS index to obtain an upper bound set, then apply the online algorithm for verification.
  • Type (c): first use the DUCS-E index to obtain a vertex set containing the result; then use the DUCS index to obtain another vertex set; prune based on containment; finally verify the pruned set with the online algorithm.
Example 8. 
Consider a type (c) query with k ε in and l > ε out . The DUCS index stores subgraphs for k 1 ε in , l 1 ε out , while the DUCS-E index stores subgraphs for k 2 < ε in , l 2 < ε out . Thus, there exists l 1 = l 1 such that ( ε in , l 1 , η ) -core ( k , l , η ) -core, and  k 2 = k 2 such that ( k , l , η ) -core ( k 2 , ε out , η ) -core. As shown in Figure 5, let V, V 1 , and V 2 be the vertex sets of ( k , l , η ) -core, ( ε in , l 1 , η ) -core, and  ( k 2 , ε out , η ) -core, respectively. Then, the result set V c = V 1 V 2 , where V 1 is obtained by removing vertices from V 1 that do not satisfy the ( ε in , l 1 , η ) -core constraint (verified online), and  V 2 is obtained by validating V 2 V 1 online. The case k > ε in and l ε out is handled symmetrically.
The hybrid index query algorithm is presented in Algorithm 6. It first obtains the hybrid index (line 1), then selects the appropriate query method based on the three cases (line 4), and finally returns the connected components of the resulting vertex set (lines 5–7).
Theorem 9. 
Given a directed uncertain graph G d = ( V , E , p ) , the worst-case time complexity of Algorithm 6 is
O v V max η - D e g in ( v ) , η - D e g out ( v ) · max D e g in ( v ) , D e g out ( v ) ,
where V is the pruned vertex set in type (c) queries.
Proof. 
For type (a), Theorem 6 gives complexity O ( v V max ( D e g out ( v ) , D e g in ( v ) ) + | V | ) . For type (b), Theorem 3 gives O ( | V | + v V ( max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) ) ) ) . For type (c), we first use the DUCS-E query (Theorem 6) to obtain V 2 in O ( v V max ( D e g out ( v ) , D e g in ( v ) ) + | V | ) . Then, the DUCS index query gives a pruned set V 1 with complexity O ( v V ( max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) ) ) ) . Finally, verifying V 2 V 1 online (Theorem 1) costs O ( v V 2 V 1 ( max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) ) ) ) . Thus, type (c) dominates, yielding the stated bound.    □
Electronics 15 03508 i006

6.3. Index Construction

The hybrid index consists of a DUCS-E part for k [ 1 , ε in ] , l [ 1 , ε out ] and a DUCS part for k [ ε in + 1 , k max ] , l [ ε out + 1 , l max ] . This significantly reduces construction time and space.
Lemma 4. 
Given a directed uncertain graph G d = ( V , E , p ) , if  k 1 < k 2 , l 1 < l 2 , and  η 1 < η 2 , then for any vertex v in the ( k 2 , l 2 , η 2 ) -core, η ( k 2 , l 2 ) ( v , G d ) > η 1 .
Proof. 
From the nesting property of k-cores, ( k 2 , l 2 , η 2 ) -core ( k 1 , l 1 , η 2 ) -core. Every vertex v in the latter satisfies η ( k 1 , l 1 ) ( v , G d ) η 2 > η 1 . Since η ( k 2 , l 2 ) ( v , G d ) η ( k 1 , l 1 ) ( v , G d ) by definition, the claim follows.    □
Yang et al. [14] proposed a top-down index construction exploiting subgraph nesting. Building on this, Lemma 4 allows pruning: when computing ( k , l , η ) -core, vertices satisfying η ( k + 1 , l ) ( v , G d ) > η can be skipped. Thus, we adopt a top-down approach instead of bottom-up, reducing redundant computations.
Algorithm 7 details the hybrid index construction. First, we obtain k max and l max for the deterministic graph G d (line 1). Then, we initialize thresholds ε in , ε out and the index arrays (lines 2–4). Neighbors are sorted by min ( core in , core out ) (line 5). Next, we construct the DUCS-E part (lines 6–10) and the DUCS part (lines 11–18). For DUCS-E, we identify vertices satisfying both in-degree and out-degree structural constraints (line 8), compute P r in and P r out (line 9), then iteratively delete the vertex with minimum Pr, updating and storing results (line 10). For DUCS, we sort neighbors separately by core in and core out (line 11), then for each k (lines 12–14) and each l (lines 15–17) we apply the corresponding procedures from Algorithm 3 and Algorithm 5 to build Seq η in and Seq η out .
Electronics 15 03508 i007
Theorem 10. 
Given a directed uncertain graph G d = ( V , E , p ) , the time complexity of Algorithm 7 is
O max ( | E in | , | E out | ) + k max 2 | E in | + l max 2 | E out | + ( k max + l max ) · | V | log | V | .
Proof. 
The complexity is dominated by the DUCS-E and DUCS index constructions. By Theorem 7, top-down DUCS-E construction costs O ( ( ε in ε out ) · ( max ( ε in , ε out ) · | V | log | V | + ε in | E in | + ε out | E out | ) ) . By Theorem 4, DUCS construction costs O ( k max 2 | E in | + l max 2 | E out | + ( k max + l max ) | V | log | V | ) . Since ε in k max and ε out l max , the total simplifies to the stated bound.    □
Theorem 11. 
Given a directed uncertain graph G d = ( V , E , p ) , the space complexity of Algorithm 7 is
O v V k max ε in + l max ε out + ε in · ε out .
Proof. 
The DUCS index stores information for k [ ε in + 1 , k max ] and l [ ε out + 1 , l max ] . From Theorem 5 (adapted to per-vertex sums), its space complexity is O ( v V ( k max ε in + l max ε out ) ) . The DUCS-E index stores information for k [ 1 , ε in ] and l [ 1 , ε out ] . By Theorem 8, its space complexity is O ( v V ( ε in · ε out ) ) . Summing gives the result.    □

7. Algorithm Comparison

We now compare the time and space complexities of the Baseline, DUCS, DUCS-E, and Hybrid algorithms.
Table 1 shows that the Baseline algorithm has the highest query time due to exhaustive computation. DUCS-E is the most efficient, while DUCS and Hybrid trade off some efficiency for lower index size.
Table 2 indicates that DUCS-E incurs the highest construction cost, while DUCS and Hybrid are more scalable, especially Hybrid which balances between the two.
Table 3 highlights the storage trade-offs. DUCS-E requires the most space, DUCS the least, and Hybrid offers a middle ground, making it suitable for large-scale applications.
In summary, DUCS-E provides the fastest queries but at high construction cost and memory usage. DUCS is lightweight but requires additional verification. Hybrid combines the strengths of both, achieving a practical balance between query efficiency, construction time, and index size.

8. Experiments

8.1. Experimental Setup

All experiments were conducted on a Linux server equipped with a 2.10 GHz Intel(R) Xeon(R) Gold 5218R CPU and 1 TB of DDR4 RAM. The algorithms under comparison fall into two main categories: query algorithms and index construction algorithms.
In the experimental evaluation, the Baseline algorithm refers to Algorithm 1. The query algorithm and index construction algorithm based on the DUCS-E index are denoted as Algorithms 2 and 3, respectively. Similarly, the DUCS-based query and construction algorithms are Algorithms 4 and 5, and the Hybrid-based ones are Algorithms 6 and 7.
All algorithms were implemented in C++ and compiled with the g++ compiler using the -O3 optimization level. Experiments that ran for more than 24 h were terminated prematurely.
Evaluation Metrics. (1) ( k , l , η ) -core query efficiency; (2) index size and construction efficiency; (3) community member similarity comparison; (4) scalability.
Datasets. We use six real-world datasets from SNAP (https://snap.stanford.edu/ (accessed on 7 July 2025)). Table 4 summarizes the number of vertices, edges, maximum in-degree, maximum out-degree, maximum in-core number, and maximum out-core number for each dataset.
  • wiki-Vote: a voting network on Wikipedia, where nodes represent users and edges represent voting relationships. We assign each edge a uniformly random probability in [ 0 , 1 ] to indicate the likelihood of one user voting for another.
  • web-Stanford, web-Google, web-BerkStan: web graphs where nodes represent web pages and edges represent hyperlinks. Each edge is assigned a uniformly random probability in [ 0 , 1 ] representing the likelihood of a hyperlink from one page to another.
  • soc-Pokec, soc-LiveJournal1: social networks where nodes represent users and edges represent social connections. Again, we assign a uniformly random probability in [ 0 , 1 ] to each edge to indicate the probability of a friendship or connection.

8.2. Parameters Setting

Setting ε in and ε out . The key to the Hybrid index is choosing appropriate ε in and ε out . Figure 6 shows how the construction time of the Hybrid index and the query time vary with ε in , ε out . The x-axis represents the percentage of k max and l max (e.g., 10% means ε in = 0.1 k max , ε out = 0.1 l max ). The left y-axis is the construction time, the right y-axis is the query time for type-(b) queries (both parameters larger than the thresholds). As ε in , ε out increase, construction time rises while query time falls.
Figure 6a (smaller datasets) shows that query time stabilizes when ε in , ε out reach 30%. Hence, we set ε in = 0.3 k max , ε out = 0.3 l max . For web-Google, this yields construction time 324 s and query time 0.004 s; increasing to 40% increases construction time to 416 s with negligible improvement in query time.
Figure 6b (larger datasets) indicates that query time stabilizes when ε in , ε out are around 30%. For web-BerkStan, setting them to 32 gives construction time 4049 s and query time 0.004 s; increasing to 30% of k max , l max raises construction time to 15,399 s with no improvement in query time. For soc-LiveJournal1, exceeding 30% leads to construction time over 24 h. Therefore, we set ε in = min { 0.3 k max , 30 } and ε out = min { 0.3 l max , 30 } in practice.
We follow the η settings of [14], namely 0.1 , 0.3 , 0.5 , 0.7 , 0.9 , with a default value of 0.5 . Given ε in and ε out , three types of queries are defined in below, where k and l for each dataset are given in Table 5, due to that different datasets have different k max and l max .
(a)
k < ε in and l < ε out ;
(b)
k ε in and l ε out ;
(c)
( k < ε in and l ε out ) or ( k ε in and l < ε out ).

8.3. Query Efficiency Comparison and Analysis

Effect of η on query efficiency. Figure 7, Figure 8 and Figure 9 compare the query efficiency of Baseline, DUCS, DUCS-E, and Hybrid for the three query types, varying η while keeping k and l fixed.
Figure 7 shows the query time for type-(a) queries. The Hybrid and DUCS-E algorithms achieve the best performance, being at least four orders of magnitude faster than Baseline. On most datasets, they are at least two orders of magnitude faster than DUCS. For example, on soc-LiveJournal1, Baseline exceeds 50 s, DUCS exceeds 10 s, while Hybrid and DUCS-E both stay below 0.1 s. The high cost of Baseline stems from recomputing vertex probabilities for every query. DUCS is slower because it still requires an online verification step. In contrast, Hybrid and DUCS-E directly return results using the precomputed index.
Figure 8 presents the query time for type-(b) queries. The DUCS, DUCS-E, and Hybrid algorithms have essentially the same performance, all about five orders of magnitude faster than Baseline. This is because type-(b) queries produce a small result set, minimizing the verification overhead for DUCS and Hybrid. For instance, on wiki-Vote with k = 8 , l = 10 , no vertex satisfies the conditions. On denser datasets such as soc-LiveJournal1, DUCS and Hybrid still have query times above 0.1 s, while DUCS-E remains below 0.1 s due to the larger verification cost.
Figure 9 shows the query time for type-(c) queries. The DUCS-E algorithm exhibits stable query times. On smaller datasets, the query times of DUCS and Hybrid decrease significantly as η increases. On larger datasets, Hybrid is considerably faster than DUCS, because Hybrid prunes unnecessary vertices before the validation step.
Effect of k and l on query efficiency. Figure 10 (varying k) and Figure 11 (varying l) illustrate the impact of k and l on query time, with  η = 0.5 .
DUCS-E consistently outperforms the other methods, being three to five orders of magnitude faster than Baseline. For example, on web-BerkStan with ( k , l , η ) = ( 10 , 10 , 0.5 ) , Baseline takes 187 s while DUCS-E takes only 7 ms. The query time of Baseline and DUCS-E remains relatively stable as k or l increases, because these algorithms are less sensitive to parameter changes.
As k (or l) increases, the query time of DUCS gradually decreases, because the size of the query subgraph shrinks, reducing verification cost. On soc-LiveJournal1, DUCS takes 8.74 s for ( k , l ) = ( 10 , 10 ) but only 0.18 s for ( 10 , 50 ) .
The Hybrid algorithm’s query time first increases and then decreases. When k and l are below the thresholds ε in , ε out , the query is type-(a) and results are obtained directly from the index, resulting in low time. When k or l exceeds the thresholds, the query becomes type-(c) and requires verification, increasing the time. As k or l further increases, the number of qualifying vertices drops, and the verification cost falls again. For instance, on soc-Pokec with ε in = ε out = 10 , Hybrid takes 0.04 s for ( 6 , 6 ) , 0.54 s for ( 6 , 12 ) , and 0.06 s for ( 6 , 30 ) (no vertices meet the criteria).
In summary, Baseline is unsuitable for efficient query processing. DUCS is generally slower than DUCS-E and Hybrid. DUCS-E and Hybrid achieve the best query efficiency, especially on larger datasets: for type-(a), DUCS-E and Hybrid are optimal; for type-(b), all three index-based algorithms perform well; for type-(c), DUCS-E maintains the most stable and best performance.

8.4. Index Size and Index Construction Time

Index size comparison. From Figure 12a, the DUCS-E index is the largest, followed by Hybrid, and DUCS is the smallest. DUCS-E stores all ( k , l ) combinations, requiring the most space. DUCS stores only two approximate indices for in-degree and out-degree separately, thus the smallest. Hybrid stores both a partial precise index and partial approximate indices, resulting in moderate space. For soc-LiveJournal1, DUCS-E exceeds 9000 MB, Hybrid uses 4210 MB, and DUCS uses 1006 MB.
Index construction time comparison. Figure 12b shows that DUCS-E has the longest construction time, especially on large datasets (e.g., soc-LiveJournal1 exceeds 24 h). DUCS is the fastest. On wiki-Vote, Hybrid takes only 1.3 s, ten times faster than DUCS-E. On soc-LiveJournal1, Hybrid finishes in 7.8 h, while DUCS-E exceeds 24 h (at least three times slower).

8.5. Model Comparison

If edge directions are ignored, a directed graph becomes an undirected graph with fewer edges (bidirectional edges become a single edge). To evaluate effectiveness, we follow [21] and set the ( k , η ) -core query parameter k to 0.7 · ( k + l ) . We choose different ( k , l ) pairs for different datasets to ensure a fair comparison. We use community member similarity (CMS) as the quality metric.
Community Member Similarity (CMS). A cohesive community should have high internal similarity. We use the Jaccard index to measure similarity between two vertices based on common in-neighbors and out-neighbors. For a vertex set C, we define
CMS ( C ) in = 1 | C | 2 u C v C | in ( u ) in ( v ) | | in ( u ) in ( v ) | ,
CMS ( C ) out = 1 | C | 2 u C v C | out ( u ) out ( v ) | | out ( u ) out ( v ) | .
Both measures lie in [ 0 , 1 ] , with larger values indicating higher cohesion. Figure 13 shows that the ( k , l , η ) -core model yields substantially higher CMS values than the ( k , η ) -core model on undirected graphs. For example, on soc-LiveJournal1, ( k , η ) -core gives CMS in = 0.00002 and CMS out = 0.00001 , while our model gives 0.0018 and 0.0014 , respectively—an improvement of over two orders of magnitude.

8.6. Scalability Testing

Due to space limitations, we only report scalability tests on the largest dataset, soc-LiveJournal1. As shown in Figure 14, we sampled nodes and edges from 20% to 100% uniformly at random. For node sampling, we take the induced subgraph of the sampled nodes; for edge sampling, we include all incident nodes. The figure shows the index construction time and space consumption for DUCS, DUCS-E, and Hybrid as the graph size increases.
All three methods exhibit increasing construction time and space with larger | V | or | E | . Hybrid consistently requires less time and space than DUCS-E. These results demonstrate that the proposed Hybrid index construction and DUCS construction scale well.

8.7. Experiments on Software Engineering and Electronics-Related Datasets

Here, we conducted additional experiments on two publicly available datasets, which are related to software engineering and electronics. We present the results separately, due to their relatively small sizes.
The first dataset is the linux kernel function call graph (https://zenodo.org/record/2652487 (accessed on 18 July 2026)) with 3973 vertices and 30,500 edges, where each vertex represents a C source file in the Linux kernel, and each directed edge ( u , v ) indicates that source file u calls one or more functions defined in source file v. The direction is naturally irreversible, representing the static dependency relationship between files. The graph captures the inter-file function call dependencies extracted through static analysis of the Linux kernel v4.21 source code. Due to the presence of conditional compilation (e.g., #ifdef CONFIG_XXX), the same function call may be included or excluded depending on the compilation configuration, which naturally introduces uncertainty into the dependency graph. The edge probability p ( u , v ) is computed by counting the frequency of calls from file u to file v in the raw data, and then mapping the frequency to a probability value using a log-scaled transformation. A higher call frequency indicates that the dependency exists under more compilation paths, and thus has a higher probability.
The second dataset is MIT reality mining human contact network (https://ieee-dataport.org/open-access/crawdad-mitreality (accessed on 18 July 2026)) with 96 vertices and 5078 edges, where each vertex represents a participant (student or faculty member) at MIT Media Lab who carried a Nokia 6600 smartphone equipped with logging software, and each directed edge ( u , v ) exists if participant u was within Bluetooth range of participant v on at least one day during the 234-day observation period. As physical proximity is symmetric, we assign the same probability to both directions. The dataset captures human physical proximity patterns through Bluetooth device scans, which are representative of wireless sensor networks and IoT communication scenarios. The probability of an edge reflects the frequency and regularity of contact between two individuals over time. The observation period is divided into 234 daily windows. If person A appears within person B’s Bluetooth scan range at least once on a given day, that day is counted as a valid contact day. The edge probability p ( u , v ) is then computed as the number of valid contact days divided by the total number of days (234). This models the inherent uncertainty in human mobility and interaction patterns.
The experimental results on these two datasets are summarized in Table 6, where parameters are chosen in the same way as Section 8.2. We emphasize that these datasets are considerably smaller than the six large-scale benchmarks (wiki-Vote, web-Stanford, web-Google, web-BerkStan, soc-Pokec, and soc-LiveJournal1) used above. As shown in Table 4 of the main paper, the largest dataset (soc-LiveJournal1) contains over 4.8 million vertices and 68 million edges. Due to the significant scale difference, we present these results separately rather than integrating them into the main experimental section, to maintain the focus on the scalability and efficiency of our methods on large graphs.
The experimental results on both datasets are fully consistent with the main findings reported in this paper:
  • Index-based methods significantly outperform the online baseline: On linux, DUCS-E achieves a 17× speed-up over Baseline; on mit, DUCS-E achieves a 26× speed-up.
  • DUCS-E achieves the fastest query response: 2.53 × 10 2 ms on linux and 0.71 × 10 2 ms on mit.
  • DUCS requires the smallest index storage: 0.36 MB on linux and 0.02 MB on mit.
  • Hybrid provides the best trade-off: It achieves query times close to DUCS-E (42.20 vs. 2.53 on linux; 16.80 vs. 0.71 on mit) while requiring significantly less storage than DUCS-E (0.48 MB vs. 1.09 MB on linux; 0.04 MB vs. 0.21 MB on mit).

8.7.1. Implications for Software Engineering Applications

The linux dataset demonstrates the practical applicability of our methods to software engineering scenarios:
  • Dependency Analysis: The ( k , l , η ) -core can identify a core set of mutually dependent source files in large software systems. Files with both high in-degree (many files depend on them) and high out-degree (they depend on many others) represent the most critical and tightly coupled components.
  • Conditional Compilation Uncertainty: The edge probabilities derived from conditional compilation frequencies naturally model the uncertainty in build-time dependencies. Our index-based methods enable fast, on-the-fly identification of stable dependency cores under different compilation configurations.
  • Maintenance Prioritization: By querying different ( k , l , η ) parameter combinations, software engineers can identify modules that are critical for system stability and should be prioritized for testing, refactoring, and security auditing.

8.7.2. Implications for Electronics/Sensor Network Applications

The mit dataset validates the applicability to wireless sensor networks and IoT scenarios:
  • Contact Pattern Analysis: The ( k , l , η ) -core can identify stable and reliable communication clusters in mobile ad-hoc networks, where contacts are probabilistic and time-varying.
  • Network Reliability: The edge probabilities reflect communication reliability or contact frequency. Our methods enable fast identification of subgraphs where both sending and receiving capabilities exceed desired thresholds with high probability, which is crucial for routing and topology control.
  • Scalability to Larger Sensor Networks: Although the mit dataset is small (96 nodes), the consistency of our results with large-scale graph experiments suggests that the proposed methods can scale to larger IoT deployments.
These results further strengthen the generalizability of our contributions and confirm the relevance of our work to the software engineering and electronics communities.

8.8. Discussion

8.8.1. Lazy Caching vs. Exhaustive Precomputation

We discuss an alternative strategy suggested: lazy caching (memoization), where the result of a ( k , l , η ) -core query is computed only upon its first occurrence and cached for subsequent queries. This approach can be efficient when the number of distinct queries is small or the query workload is highly repetitive. However, it has several limitations compared to our exhaustive precomputation strategy.
First, in the worst case where all possible ( k , l ) combinations are queried at least once, lazy caching degenerates to the online algorithm and incurs the same total computation cost as running all queries from scratch. In contrast, DUCS-E guarantees constant-time response for any query after a single offline construction phase, regardless of the query workload.
Second, the Hybrid index proposed in this paper already bridges the gap between exhaustive precomputation and on-demand computation. By selectively storing DUCS-E for small k , l and DUCS for large k , l , Hybrid avoids the high storage cost of full precomputation while still providing fast query processing for most practical scenarios.
Third, implementing and benchmarking a memoization strategy would require defining a specific query workload distribution (e.g., Zipfian, uniform, or repeated patterns), which is highly application-dependent and may not lead to generally applicable conclusions. Since the focus of this paper is on the algorithmic design of exact ( k , l , η ) -core query processing, we believe that the systematic comparison among the online algorithm, DUCS, DUCS-E, and Hybrid is sufficient to demonstrate the effectiveness and efficiency of our proposals.

8.8.2. Index Trade-Offs

We highlight the relationship among the three indexing structures from an empirical perspective. As shown in Figure 7, Figure 8, Figure 9 and Figure 10, DUCS-E consistently achieves the fastest query response time across all settings, at the cost of the largest index size and longest construction time. In contrast, DUCS requires significantly less storage and construction overhead but incurs higher query latency due to the need for online verification. The Hybrid index, by tuning ε in and ε out , seamlessly interpolates between these two extremes, offering a flexible and practical solution that balances query efficiency and index overhead. This confirms that DUCS-E and DUCS represent the upper and lower bounds of both query time and index size, with Hybrid falling in between and providing the best overall trade-off for most application scenarios.

9. Related Work

This section briefly reviews related work on core decomposition in deterministic and uncertain graphs.

9.1. Core Decomposition on Deterministic Graphs

The concept of k-core was introduced by Seidman [25] as a maximal subgraph where each vertex has degree at least k. Core decomposition aims to find all k-cores.
k-core decomposition on undirected graphs. Many algorithms have been proposed, notably peeling-based methods [26,27,28] that iteratively remove minimum-degree vertices. Parallel and distributed solutions have also been developed, e.g., using MapReduce [27,28] or Spark [29,30].
D-core decomposition on directed graphs. To account for edge direction, the directed core (D-core) or ( k , l ) -core model was proposed [21,22,31]. Peeling-based algorithms remove vertices that do not satisfy in-degree or out-degree constraints. Later, a distributed D-core decomposition algorithm was introduced [32] using the concept of skyline coreness and H-index to improve efficiency.

9.2. Core Decomposition on Uncertain Graphs

Bonchi et al. [12] first defined the ( k , η ) -core in uncertain graphs, a maximal subgraph where each vertex has probability at least η of having degree k . They proposed a peeling algorithm based on η -degree. Esfahani et al. [33] accelerated the computation using the Lyapunov central limit theorem. Yang et al. [14] designed an index-based optimal algorithm for ( k , η ) -core queries. Wen et al. [34] extended the index to external memory. Dai et al. [15] addressed precision issues and proposed an exact algorithm.
Existing work on core decomposition for directed graphs does not consider uncertainty, and existing probabilistic core decomposition ignores edge directions. Therefore, none of these methods can be directly applied to ( k , l , η ) -core queries, motivating our specialized solution.

9.3. Topic-Aware Most Influential Community Search

Teng et al. [24] recently introduced the TAMICS problem, which also utilizes the ( k , l , η ) -core model for cohesiveness. However, their work differs from ours in two fundamental aspects. First, their goal is to find the community with the maximum influence score for a given topic, whereas we aim to answer arbitrary ( k , l , η ) -core queries efficiently. Second, their indexing strategies (TUC-list and TIE-tree) are tailored for influence and topic estimation, while our proposed DUCS, DUCS-E, and Hybrid indexes are specifically designed to optimize core computation and verification. Therefore, our work provides the first dedicated solution for the core problem of efficient ( k , l , η ) -core query processing.

9.4. Other Related Work

Beyond ( k , η ) -core, other problems have been studied in uncertain graphs, including influence community search [35], butterfly counting and bitruss decomposition on bipartite graphs [17,36], maximal clique mining [16], reliable clustering [37,38], and k-truss computation [19,20,39].

10. Conclusions

In this paper, we presented the first in-depth study on efficient ( k , l , η ) -core queries in directed uncertain graphs. Distinct from the concurrent work on TAMICS [24], which focuses on topic-aware influence maximization, our work establishes the foundational building blocks for core decomposition in this setting, providing a family of algorithms and indexes that enable fast, exact core queries. We first present an online query algorithm based on the ( k , l , η ) -core decomposition. To further optimize query efficiency, we develop two indexing structures, the DUCS-E index and the DUCS index, leading to the DUCS-E Query and DUCS Query algorithms. Furthermore, to enhance query efficiency while reducing index overhead, we propose a hybrid index structure called the Hybrid index, which combines the advantages of DUCS and DUCS-E. The Hybrid index ensures efficient query processing while lowering index construction time and space consumption. Experimental results demonstrate that the index-based query algorithms achieve a four-order-of-magnitude improvement in query speed compared to the online query algorithm, validating the effectiveness and scalability of our proposed methods.
As lazy caching could be beneficial in environments with skewed query distributions, an interesting direction for future work is extending our indexing framework to support workload-aware caching and dynamic index updates.

Author Contributions

Conceptualization, X.T. and G.C.; methodology, X.T.; software, G.C.; validation, J.Z. and X.T.; formal analysis, J.Z.; investigation, X.T.; resources, G.C.; data curation, G.C.; writing—original draft preparation, X.T.; writing—review and editing, J.Z.; visualization, G.C.; supervision, J.Z.; project administration, X.T.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partly supported by grants from the National Natural Science Foundation of China (No.: 62372101).

Institutional Review Board Statement

This work is not applicable for human or animal studies.

Data Availability Statement

All datasets used in this study are publicly available and discussed in Section 8.

Conflicts of Interest

We declare that we do not have any commercial or associative interests that represent conficts of interest in connection with the work submitted.

References

  1. Goyal, A.; Bonchi, F.; Lakshmanan, L.V.S. Learning influence probabilities in social networks. In Proceedings of the Third International Conference on Web Search and Web Data Mining, WSDM 2010, New York, NY, USA, February 4–6, 2010; Davison, B.D., Suel, T., Craswell, N., Liu, B., Eds.; ACM: New York, NY, USA, 2010; pp. 241–250. [Google Scholar] [CrossRef]
  2. Cui, W.; Xiao, Y.; Wang, H.; Wang, W. Local search of communities in large graphs. In Proceedings of the 2014 ACM SIGMOD International Conference on Management of Data; ACM: New York, NY, USA, 2014; pp. 991–1002. [Google Scholar]
  3. Sun, Z.; Huang, X.; Xu, J.; Bonchi, F. Efficient probabilistic truss indexing on uncertain graphs. In Proceedings of the Web Conference 2021; ACM: New York, NY, USA, 2021; pp. 354–366. [Google Scholar]
  4. Brohee, S.; Van Helden, J. Evaluation of clustering algorithms for protein-protein interaction networks. BMC Bioinform. 2006, 7, 1–19. [Google Scholar] [CrossRef] [PubMed]
  5. Bader, G.D.; Hogue, C.W. An automated method for finding molecular complexes in large protein interaction networks. BMC Bioinform. 2003, 4, 1–27. [Google Scholar] [CrossRef] [PubMed]
  6. Duong, K.; Nguyen, T. Mining highly reliable dense subgraphs from uncertain weighted graphs for protein-protein interaction networks. PeerJ Comput. Sci. 2025, 11, e3304. [Google Scholar] [CrossRef]
  7. Zhang, Q.; Chu, L.; Zhao, Z.; Pei, J. Finding antagonistic communities in signed uncertain graphs. IEEE Trans. Knowl. Data Eng. 2025, 37, 655–669. [Google Scholar] [CrossRef]
  8. Cui, H.; Chang, A.; Zhu, J.; Liu, R.; Hu, K. A vertex partitioning algorithm for large-scale uncertain graphs. Concurr. Comput. Pract. Exp. 2026, 38, e70580. [Google Scholar] [CrossRef]
  9. Hu, R.; Kanani, D.H.; Zhang, J. Computing the center of uncertain points on cactus graphs. Theor. Comput. Sci. 2026, 1067, 115761. [Google Scholar] [CrossRef]
  10. Xu, H.; Zhang, J. The k-center problem of uncertain points on graphs. Inf. Process. Lett. 2026, 193, 106621. [Google Scholar] [CrossRef]
  11. Mehmood, Y.; Bonchi, F.; García-Soriano, D. Spheres of influence for more effective viral marketing. In Proceedings of the 2016 International Conference on Management of Data; ACM: New York, NY, USA, 2016; pp. 711–726. [Google Scholar]
  12. Bonchi, F.; Gullo, F.; Kaltenbrunner, A.; Volkovich, Y. Core decomposition of uncertain graphs. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; ACM: New York, NY, USA, 2014; pp. 1316–1325. [Google Scholar]
  13. Kawahigashi, H.; Terashima, Y.; Miyauchi, N.; Nakakawaji, T. Modeling ad hoc sensor networks using random graph theory. In Proceedings of the Second IEEE Consumer Communications and Networking Conference, 2005. CCNC. 2005; IEEE: Piscataway, NJ, USA, 2005; pp. 104–109. [Google Scholar]
  14. Yang, B.; Wen, D.; Qin, L.; Zhang, Y.; Chang, L.; Li, R.H. Index-based optimal algorithm for computing k-cores in large uncertain graphs. In Proceedings of the 2019 IEEE 35th International Conference on Data Engineering (ICDE); IEEE: Piscataway, NJ, USA, 2019; pp. 64–75. [Google Scholar]
  15. Dai, Q.; Li, R.; Wang, G.; Mao, R.; Zhang, Z.; Yuan, Y. Core decomposition on uncertain graphs revisited. IEEE Trans. Knowl. Data Eng. 2023, 35, 196–210. [Google Scholar] [CrossRef]
  16. Li, R.H.; Dai, Q.; Wang, G.; Ming, Z.; Qin, L.; Yu, J.X. Improved algorithms for maximal clique search in uncertain networks. In Proceedings of the 2019 IEEE 35th International Conference on Data Engineering (ICDE); IEEE: Piscataway, NJ, USA, 2019; pp. 1178–1189. [Google Scholar]
  17. Mukherjee, A.P.; Xu, P.; Tirthapura, S. Mining maximal cliques from an uncertain graph. In Proceedings of the 2015 IEEE 31st International Conference on Data Engineering; IEEE: Piscataway, NJ, USA, 2015; pp. 243–254. [Google Scholar]
  18. Esfahani, F.; Wu, J.; Srinivasan, V.; Thomo, A.; Wu, K. Fast Truss Decomposition in Large-scale Probabilistic Graphs. In Proceedings of the International Conference on Extending Database Technology; OpenProceedings.org: Konstanz, Germany, 2019. [Google Scholar]
  19. Sun, Z.; Huang, X.; Xu, J.; Bonchi, F.; Chang, L. Probabilistic truss decomposition on uncertain graphs: Indexing and dynamic maintenance. ACM Trans. Database Syst. 2025, 50, 6. [Google Scholar] [CrossRef]
  20. Xing, B.; Tan, Y.; Zhou, J.; Du, M. Truss community search in uncertain graphs. Knowl. Inf. Syst. 2024, 66, 7739–7773. [Google Scholar] [CrossRef]
  21. Fang, Y.; Wang, Z.; Cheng, R.; Wang, H.; Hu, J. Effective and efficient community search over large directed graphs. IEEE Trans. Knowl. Data Eng. 2018, 31, 2093–2107. [Google Scholar] [CrossRef]
  22. Zhang, J.; Wang, C.; Wang, J. Who proposed the relationship? recovering the hidden directions of undirected social networks. In Proceedings of the 23rd international Conference on World Wide Web; ACM: New York, NY, USA, 2014; pp. 807–818. [Google Scholar]
  23. Giatsidis, C.; Thilikos, D.M.; Vazirgiannis, M. D-cores: Measuring collaboration of directed graphs based on degeneracy. Knowl. Inf. Syst. 2013, 35, 311–343. [Google Scholar] [CrossRef]
  24. Teng, L.; Wang, Y.; Lin, Z.; Yu, F. Topic-aware most influential community search in social networks. Neurocomputing 2025, 638, 130173. [Google Scholar] [CrossRef]
  25. Seidman, S.B. Network structure and minimum degree. Soc. Netw. 1983, 5, 269–287. [Google Scholar] [CrossRef]
  26. Khaouid, W.; Barsky, M.; Srinivasan, V.; Thomo, A. K-core decomposition of large networks on a single PC. Proc. VLDB Endow. 2015, 9, 13–23. [Google Scholar] [CrossRef]
  27. Batagelj, V.; Zaversnik, M. An o (m) algorithm for cores decomposition of networks. arXiv 2003, arXiv:cs/0310049. [Google Scholar]
  28. Cheng, J.; Ke, Y.; Chu, S.; Özsu, M.T. Efficient core decomposition in massive networks. In Proceedings of the 2011 IEEE 27th International Conference on Data Engineering; IEEE: Piscataway, NJ, USA, 2011; pp. 51–62. [Google Scholar]
  29. Esfandiari, H.; Lattanzi, S.; Mirrokni, V. Parallel and streaming algorithms for k-core decomposition. In Proceedings of the International Conference on Machine Learning; PMLR: Cambridge, MA, USA, 2018; pp. 1397–1406. [Google Scholar]
  30. Dasari, N.S.; Desh, R.; Zubair, M. ParK: An efficient algorithm for k-core decomposition on multicore processors. In Proceedings of the 2014 IEEE International Conference on Big Data (Big Data); IEEE: Piscataway, NJ, USA, 2014; pp. 9–16. [Google Scholar]
  31. Li, Z.; Fang, Y.; Liu, Q.; Cheng, J.; Cheng, R.; Lui, J.C. Walking in the cloud: Parallel simrank at scale. Proc. VLDB Endow. 2015, 9, 24–35. [Google Scholar]
  32. Liao, X.; Liu, Q.; Jiang, J.; Huang, X.; Xu, J.; Choi, B. Distributed d-core decomposition over large directed graphs. arXiv 2022, arXiv:2202.05990. [Google Scholar]
  33. Esfahani, F.; Srinivasan, V.; Thomo, A.; Wu, K. Efficient Computation of Probabilistic Core Decomposition at Web-Scale. In Proceedings of the International Conference on Extending Database Technology; OpenProceedings.org: Konstanz, Germany, 2019. [Google Scholar]
  34. Wen, D.; Yang, B.; Qin, L.; Zhang, Y.; Chang, L.; Li, R.H. Computing k-cores in large uncertain graphs: An index-based optimal approach. IEEE Trans. Knowl. Data Eng. 2020, 34, 3126–3138. [Google Scholar] [CrossRef]
  35. Luo, W.; Zhou, X.; Li, K.; Gao, Y.; Li, K. Efficient influential community search in large uncertain graphs. IEEE Trans. Knowl. Data Eng. 2021, 35, 3779–3793. [Google Scholar] [CrossRef]
  36. Zhou, A.; Wang, Y.; Chen, L. Butterfly counting and bitruss decomposition on uncertain bipartite graphs. VLDB J. 2023, 32, 1013–1036. [Google Scholar] [CrossRef]
  37. Han, K.; Gui, F.; Xiao, X.; Tang, J.; He, Y.; Cao, Z.; Huang, H. Efficient and effective algorithms for clustering uncertain graphs. Proc. VLDB Endow. 2019, 12, 667–680. [Google Scholar] [CrossRef]
  38. Liu, L.; Jin, R.; Aggarwal, C.; Shen, Y. Reliable clustering on uncertain graphs. In Proceedings of the 2012 IEEE 12th International Conference on Data Mining; IEEE: Piscataway, NJ, USA, 2012; pp. 459–468. [Google Scholar]
  39. Zou, Z.; Zhu, R. Truss decomposition of uncertain graphs. Knowl. Inf. Syst. 2017, 50, 197–230. [Google Scholar] [CrossRef]
Figure 1. Illustration of directional and non-directional relationships in graphs. (a) ( 2 , 2 , 0.3 ) -core of directed uncertain graph G d . (b) 2-core of graph G.
Figure 1. Illustration of directional and non-directional relationships in graphs. (a) ( 2 , 2 , 0.3 ) -core of directed uncertain graph G d . (b) 2-core of graph G.
Electronics 15 03508 g001
Figure 2. DUCS-E index of G d .
Figure 2. DUCS-E index of G d .
Electronics 15 03508 g002
Figure 3. DUCS index of G d .
Figure 3. DUCS index of G d .
Electronics 15 03508 g003
Figure 4. Hybrid index of G d .
Figure 4. Hybrid index of G d .
Electronics 15 03508 g004
Figure 5. Analysis of type (c) query.
Figure 5. Analysis of type (c) query.
Electronics 15 03508 g005
Figure 6. Effects of ε in and ε out on query performance and index construction. (a) Small datasets. (b) Large datasets.
Figure 6. Effects of ε in and ε out on query performance and index construction. (a) Small datasets. (b) Large datasets.
Electronics 15 03508 g006
Figure 7. Query time for different η (type-a queries).
Figure 7. Query time for different η (type-a queries).
Electronics 15 03508 g007
Figure 8. Query time for different η (type-b queries).
Figure 8. Query time for different η (type-b queries).
Electronics 15 03508 g008
Figure 9. Query time for different η (type-c queries).
Figure 9. Query time for different η (type-c queries).
Electronics 15 03508 g009
Figure 10. Query time for different k ( η = 0.5 ).
Figure 10. Query time for different k ( η = 0.5 ).
Electronics 15 03508 g010
Figure 11. Query time for different l ( η = 0.5 ).
Figure 11. Query time for different l ( η = 0.5 ).
Electronics 15 03508 g011
Figure 12. Comparison of index size and construction time. (a) Index size for different datasets. (b) Construction time for different datasets.
Figure 12. Comparison of index size and construction time. (a) Index size for different datasets. (b) Construction time for different datasets.
Electronics 15 03508 g012
Figure 13. Community member similarity (CMS).
Figure 13. Community member similarity (CMS).
Electronics 15 03508 g013
Figure 14. Scalability of index size and index construction time.
Figure 14. Scalability of index size and index construction time.
Electronics 15 03508 g014
Table 1. Comparison of query time across different algorithms.
Table 1. Comparison of query time across different algorithms.
AlgorithmTime Complexity
Baseline O | V | + v V max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) )
DUCS-E O v V max ( D e g out ( v ) , D e g in ( v ) ) + | V |
DUCS O | V | + v V max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) )
Hybrid O v V max ( η - D e g in ( v ) , η - D e g out ( v ) ) · max ( D e g in ( v ) , D e g out ( v ) )
Table 2. Comparison of index construction time across different algorithms.
Table 2. Comparison of index construction time across different algorithms.
AlgorithmTime Complexity
DUCS-E O ( k max · l max ) · max ( k max , l max ) · ( | V | log | V | + | E | )
DUCS O k max 2 | E in | + l max 2 | E out | + ( k max + l max ) · | V | log | V |
Hybrid O max ( | E in | , | E out | ) + k max 2 | E in | + l max 2 | E out | + ( k max + l max ) · | V | log | V |
Table 3. Index size comparison across different algorithms.
Table 3. Index size comparison across different algorithms.
AlgorithmSpace Complexity
DUCS-E O v V core in ( v ) · core out ( v )
DUCS O v V core in ( v ) + core out ( v )
Hybrid O v V k max ε in + l max ε out + ε in ε out
Table 4. Dataset statistics.
Table 4. Dataset statistics.
Dataset | V | | E | k max l max
wiki-Vote8297103,6891915
web-Stanford281,9032,312,4974141
web-Google875,7135,105,0393232
web-BerkStan685,2307,600,595162162
soc-Pokec1,632,80330,622,5643231
soc-LiveJournal14,847,57168,993,773252253
Table 5. Query parameters k and l settings.
Table 5. Query parameters k and l settings.
DatasetQuery Typekl
wiki-Votea34
b810
c48
web-Stanforda48
b2025
c516
web-Googlea45
b1520
c515
web-BerkStana510
b4040
c1035
soc-Pokeca45
b1520
c515
soc-LiveJournal1a510
b4040
c1035
Table 6. Average query time and index overhead on additional datasets.
Table 6. Average query time and index overhead on additional datasets.
DatasetMethodIndex Size (MB)Build Time (ms)Avg. Query Time ( × 10 2 ms)
linuxBaseline43.20
DUCS-E1.0947.402.53
DUCS0.363.0242.40
Hybrid0.487.9542.20
mitBaseline18.90
DUCS-E0.21552.000.71
DUCS0.020.1917.00
Hybrid0.0413.0016.80
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tang, X.; Chen, G.; Zhou, J. Accelerating (k,l,η)-Core Query Processing in Directed Uncertain Graphs. Electronics 2026, 15, 3508. https://doi.org/10.3390/electronics15163508

AMA Style

Tang X, Chen G, Zhou J. Accelerating (k,l,η)-Core Query Processing in Directed Uncertain Graphs. Electronics. 2026; 15(16):3508. https://doi.org/10.3390/electronics15163508

Chicago/Turabian Style

Tang, Xian, Guo Chen, and Junfeng Zhou. 2026. "Accelerating (k,l,η)-Core Query Processing in Directed Uncertain Graphs" Electronics 15, no. 16: 3508. https://doi.org/10.3390/electronics15163508

APA Style

Tang, X., Chen, G., & Zhou, J. (2026). Accelerating (k,l,η)-Core Query Processing in Directed Uncertain Graphs. Electronics, 15(16), 3508. https://doi.org/10.3390/electronics15163508

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop