A key path discovery method for influence maximization, electronic equipment and storage medium
By combining bounded depth-first search and adaptive pruning techniques with node influence calculation, the problem of maximizing path influence in large-scale networks is solved, achieving efficient and accurate path discovery and supporting precise marketing and risk management decisions.
Patent Information
- Application Number
- CN202611165716.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to efficiently and accurately identify and quantify the most influential paths in large-scale networks, especially in scenarios such as marketing communications and risk intervention. Traditional methods are unable to address the complex optimization objective of maximizing influence and face the problem of combinatorial explosion.
By employing a bounded depth-first search strategy and adaptive pruning techniques, combined with node influence calculation, and by acquiring multi-dimensional attribute data and topological features, an adaptive pruning threshold is set, a transmission subgraph is constructed, and the node with the largest cumulative influence is selected in reverse to form the critical path with the maximum influence.
It efficiently and accurately identifies and quantifies the most influential paths in large-scale networks, providing decision support for precise marketing seed user selection, critical link blocking in public opinion management, and infrastructure resilience assessment, thereby improving computational efficiency and result accuracy.
Smart Images

Figure CN123178676A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of decision science and graph intelligence, and in particular to a critical path discovery method, electronic device and storage medium for maximizing graph influence. Background Technology
[0002] In fields such as social network analysis, information dissemination prediction, and infrastructure resilience assessment, one of the core challenges is identifying the most influential transmission paths within a network. Traditional solutions, such as PageRank or centrality metrics, can only assess the importance of individual nodes and cannot reveal the path-level influence with sequence dependencies. Existing path discovery algorithms (such as shortest path and simple DFS) mostly use hop count or fixed weights as optimization objectives, failing to address the complex optimization objective of "maximizing influence." For example, in marketing communications, a path passing through multiple moderately influential users may have a far greater total effect than a path passing through a single star user but not reaching the target audience. Current technologies lack the ability to quantify and discover such value. Exhaustive search, on the other hand, faces combinatorial explosion problems in large-scale networks, making it impractical.
[0003] The applicant proposed solutions to the aforementioned technical problems. Summary of the Invention
[0004] To address the technical problems existing in the background art, this invention proposes a critical path discovery method, electronic device, and storage medium for maximizing graph influence. It can efficiently and accurately discover and quantify the path with the greatest influence in large-scale complex networks, thereby providing core data support for decision-making processes such as propagation strategies and risk intervention.
[0005] In a first aspect, the present invention proposes a critical path discovery method for maximizing graph influence, comprising the following steps: Step 1: Obtain graph data, set the start and end points, and calculate the influence value of each node; Step 2: Starting from the starting point, with the endpoint as the search target and the preset maximum search depth as the upper bound, a bounded depth-first search strategy is used to search for paths. For each search path extended from the starting point, the cumulative influence of the current path is calculated. If the cumulative influence is lower than the adaptive pruning threshold, the extension of the current search path is terminated. After traversal, all search paths from the starting point to the endpoint that have not been terminated are taken as a set of candidate paths. Step 3: Construct a transmission subgraph from the candidate path set. In the transmission subgraph, calculate the maximum cumulative influence of each node in the forward direction from the starting point to the ending point. Then, starting from the ending point, select the node with the maximum cumulative influence among the predecessor nodes in the reverse direction according to the maximum cumulative influence, until returning to the starting point, forming the critical path with the maximum influence. Step 4: Output the critical path.
[0006] Furthermore, the adaptive pruning threshold is set according to the following method: The initial threshold is obtained by multiplying the product of the average influence of the nodes involved in the current search and the maximum search depth by a preset scaling factor. During the search process, the threshold is updated based on the cumulative influence of the currently discovered optimal path, and the updated threshold is not lower than the original threshold.
[0007] Furthermore, the influence value of the node is set by: obtaining the multidimensional attribute data of the node, normalizing the multidimensional attribute data, and then linearly weighting it to obtain the influence value of the node.
[0008] Furthermore, the multidimensional attribute data of the node are observable attributes, and the observable attribute data includes any one or more of the following: number of fans, activity level, and historical interaction intensity.
[0009] Furthermore, when observable attributes are missing, the topological features of the node are used as multidimensional attribute data. The topological features are any one or more of degree centrality, PageRank value, betweenness centrality, proximity centrality, eigenvector centrality, clustering coefficient, and eccentricity.
[0010] Furthermore, each candidate path in the candidate path set is a simple path.
[0011] Furthermore, before outputting the critical path, step 4 also includes verifying the connectivity of the critical path, verifying that the critical path does not contain duplicate nodes, and verifying that the cumulative influence of the critical path is not lower than the cumulative influence of any other candidate path in the candidate path set; if the verification fails, the maximum search depth is increased or the preset threshold is relaxed, and steps 2 to 3 are re-executed.
[0012] Furthermore, the graph structure corresponding to the graph data is a directed graph or an undirected graph.
[0013] In a second aspect, the present invention also provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions to implement the critical path discovery method as described in the first aspect.
[0014] Thirdly, the present invention also provides a storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the critical path discovery method as described in the first aspect.
[0015] This invention creatively introduces the CPM framework into the field of graph influence analysis. By replacing duration with node influence and redefining the earliest start time as maximum cumulative influence, it solves the technical challenge of finding the path to maximize serialized influence in a static graph. Through search, pruning, and subgraph optimization steps, it significantly improves computational efficiency while ensuring a globally optimal solution. The output provides decision-making support for scenarios such as seed user selection in precision marketing, critical link blocking in public opinion management, and risk transmission path identification in infrastructure resilience assessment. Attached Figure Description
[0016] Figure 1 This is a flowchart of a critical path discovery method for maximizing graph influence proposed in this invention. Detailed Implementation
[0017] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0018] This invention proposes a critical path discovery method for maximizing graph influence, applicable to scenarios requiring the quantification and optimal decision-making of influence transmission paths in complex networks, such as social network analysis, information propagation prediction, and infrastructure resilience assessment. For ease of understanding, the following explanation uses a social network information propagation analysis scenario as an example.
[0019] like Figure 1 As shown, the critical path discovery method for maximizing graph influence proposed in this invention includes the following steps: Step 1: Obtain graph data, set the starting point S and the ending point T, and calculate the influence value of each node.
[0020] In this embodiment, each user in the social network is represented as a node in the graph data G=(V, E), and the following or interaction relationships between users are represented as directed or undirected edges between nodes. The graph data can be obtained through the social platform API interface or imported from public datasets (such as the Weibo user relationship network).
[0021] The starting point S can be set as the initial publisher of a certain information dissemination, and the ending point T can be set as a representative node on the boundary of the target impact object or the dissemination scope. In practical applications, the starting point and the ending point can be set according to specific business needs. For example, in a marketing scenario, the starting point is the initial launch node of a marketing campaign, and the ending point is the conversion target node; in a public opinion management scenario, the starting point is the source node of public opinion, and the ending point is the sensitive dissemination node that needs to be blocked.
[0022] Before starting the path search, the influence value I(v) of each node in graph G is first calculated as the basis for subsequent calculations. The influence value of a node is determined by: obtaining the multidimensional attribute data of the node, normalizing the multidimensional attribute data, and then linearly weighting it to obtain the influence value of the node.
[0023] Specifically, for each node v, obtain its attribute vector. ,in Represented as: Here, k represents the attribute dimension of a node. After normalizing the multidimensional attribute data of a node and applying linear weighting, the influence value of a single node is calculated using the following formula:
[0024] in, This represents the normalization or logarithmic transformation function. This represents the weight of an attribute vector in a certain dimension of a node. non-negative values and Specifically, weight It can be pre-defined according to business needs. For example, in social network dissemination scenarios, the number of fans can be given a higher weight to reflect the breadth of dissemination.
[0025] In this embodiment, the multidimensional attribute data of the node is observable attribute, which includes any one or more of the following: number of followers, content posting frequency, content forwarding activity, and historical interaction intensity (such as the average number of likes, comments, and forwards per piece of content).
[0026] When observable attributes are missing (e.g., newly registered users lack historical interaction data), the topological features of the node are used as multidimensional attribute data. The topological features are any one or more of degree centrality, PageRank value, betweenness centrality, proximity centrality, eigenvector centrality, clustering coefficient, and eccentricity.
[0027] Step 2: Starting from the starting point, with the endpoint as the search target, and using the preset maximum search depth... The upper bound is used, and a bounded depth-first search strategy is adopted for path search. For each search path that expands from the starting point, the cumulative influence of the current path is calculated. If the cumulative influence is lower than the adaptive pruning threshold, the expansion of the current search path is terminated. After traversal, all search paths from the starting point to the ending point that have not been terminated are used as the candidate path set.
[0028] Maximum search depth Based on specific business needs, in this embodiment, the maximum search depth is determined... The search depth is limited to 3 to 10 hops, with a default baseline depth of 6 hops. In low-sparse, short-link scenarios, 3 to 5 hops can be used, while in long-distance, weak-propagation scenarios, 8 to 10 hops can be used, without unlimited traversal. Furthermore, during the search process, each candidate path in the candidate path set is a simple path, meaning that repeatedly visiting the same node is prohibited. This ensures that when the graph contains loops, the search will not proceed infinitely along the loops, nor will the cumulative influence of the same node be repeatedly calculated in a single path.
[0029] Specifically, the formula for calculating the cumulative impact of a path is:
[0030] As the search path expands, the cumulative influence of the current path is calculated. If the cumulative impact is lower than the current adaptive pruning threshold If the search fails, the current path branch search will be terminated immediately and will not be expanded further to save computing resources.
[0031] Specifically, the adaptive pruning threshold is set in the following manner: The initial threshold is obtained by multiplying the product of the average influence of the nodes involved in the current search and the maximum search depth by a preset scaling factor; the initial threshold Represented as:
[0032] in, This represents the preset scaling factor. ; This indicates the average influence of the nodes involved in the current search. This indicates the maximum search depth. In this embodiment, The preferred value is 0.3 to 0.8. For example, 0.5 is the default value. If you want to prune more aggressively to improve computational efficiency, you can choose a value of 0.6 to 0.8. If you prefer to retain more candidate paths, you can choose a value of 0.3 to 0.5.
[0033] During the search process, the threshold is updated based on the cumulative influence of the currently discovered optimal path, and the updated threshold is not lower than the original threshold.
[0034] Specifically, during the search process, whenever a complete path from the origin to the destination is found, the cumulative influence of that path is calculated. Total influence of the currently discovered optimal path Compare and update Then update the pruning threshold: ,in The updated threshold remains monotonically constant, which means that as better paths are discovered, the pruning standard gradually increases, and the search space continuously shrinks. At the same time, it avoids lowering the threshold due to the discovery of poorer paths, which would cause previously pruned branches to re-enter the search, thus maintaining continuous optimization of computational efficiency.
[0035] After the traversal is complete, all search paths from the start point to the end point that have not been pruned are selected as candidate paths. .
[0036] Step 3: From the candidate path set Constructing a transmission subgraph ,in, for The union of all nodes traversed by all paths in the set. for The critical path is the union of all edges traversed by all paths in the transmission subgraph. In the transmission subgraph, the maximum cumulative influence of each node is calculated in a forward direction from the starting point to the ending point; then, starting from the ending point, the node with the maximum cumulative influence among the predecessor nodes is selected in a reverse direction based on the maximum cumulative influence, until the starting point is returned, forming the critical path with the maximum influence.
[0037] In the transmission subgraph Above, in topological order (if) If a cycle exists, a depth-first search is used to ensure that predecessors are processed before successors. Traverse all nodes and calculate the maximum cumulative influence H(u) from the starting point S to each node u. The forward recursive formula is expressed as:
[0038] in, Transmission subgraph Middle node The set of all predecessor nodes, Starting point Its influence value.
[0039] In this embodiment, if a certain node Precursor set empty and ,but .
[0040] After the forward recursion is completed, reverse backtracking begins from the endpoint T. In each step, for the current node u, the predecessor node that has the greatest cumulative influence is selected. , Until returning to the starting point S, the critical path is obtained. .
[0041] Step 4: Output the critical path .
[0042] Specifically, before outputting the critical path, the process includes verifying the connectivity of the critical path, verifying that the critical path does not contain duplicate nodes, and verifying that the cumulative influence of the critical path is not lower than the cumulative influence of any other candidate path in the candidate path set. Verifying the connectivity of the critical path involves checking the critical path... The critical path is checked to ensure that there exists an edge between adjacent nodes, with the starting point S and the ending point T. If any edge is missing, the connectivity verification fails. Verifying that the critical path does not contain duplicate nodes checks for cycles generated during backtracking; if a cycle is generated, the path does not meet the condition of being a simple path. Finally, verifying that the cumulative influence of the critical path is not less than the cumulative influence of any other candidate path in the candidate path set ensures the critical path's integrity. It has the global optimal cumulative influence in the candidate path set. If necessary, it can also be compared with the results of unpruned search to ensure that the dynamic pruning strategy does not prune branches containing the global optimum due to improper threshold setting.
[0043] If all three verifications above pass, then output the critical path. and its overall influence If the verification fails, the maximum search depth is increased or the preset threshold is relaxed, and steps 2 to 3 are repeated until the verification passes or the preset maximum number of retries is reached.
[0044] In one embodiment, the present invention also provides an electronic device, including: a processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions to implement the above-described critical path discovery method.
[0045] In one embodiment, the present invention also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the above-described critical path discovery method.
[0046] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.
Claims
1. A critical path discovery method for maximizing graph influence, characterized in that, Includes the following steps: Step 1: Obtain graph data, set the start and end points, and calculate the influence value of each node; Step 2: Starting from the starting point, with the endpoint as the search target and the preset maximum search depth as the upper bound, a bounded depth-first search strategy is used to search for paths. For each search path extended from the starting point, the cumulative influence of the current path is calculated. If the cumulative influence is lower than the adaptive pruning threshold, the extension of the current search path is terminated. After traversal, all search paths from the starting point to the endpoint that have not been terminated are taken as a set of candidate paths. Step 3: Construct a transmission subgraph from the candidate path set. In the transmission subgraph, calculate the maximum cumulative influence of each node in the forward direction from the starting point to the ending point. Then, starting from the ending point, select the node with the maximum cumulative influence among the predecessor nodes in the reverse direction according to the maximum cumulative influence, until returning to the starting point, forming the critical path with the maximum influence. Step 4: Output the critical path.
2. The critical path discovery method for maximizing graph influence according to claim 1, characterized in that, The adaptive pruning threshold is set according to the following method: The initial threshold is obtained by multiplying the product of the average influence of the nodes involved in the current search and the maximum search depth by a preset scaling factor. During the search process, the threshold is updated based on the cumulative influence of the currently discovered optimal path, and the updated threshold is not lower than the original threshold.
3. The critical path discovery method for maximizing graph influence according to claim 1, characterized in that, The influence value of a node is set as follows: obtain the multidimensional attribute data of the node, normalize the multidimensional attribute data, and then linearly weight it to obtain the influence value of the node.
4. The critical path discovery method for maximizing graph influence as described in claim 3, characterized in that, The multidimensional attribute data of the node are observable attributes, which include any one or more of the following: number of followers, activity level, and historical interaction intensity.
5. The critical path discovery method for maximizing graph influence according to claim 3, characterized in that, When observable attributes are missing, the topological features of the node are used as multidimensional attribute data. The topological features are any one or more of degree centrality, PageRank value, betweenness centrality, proximity centrality, eigenvector centrality, clustering coefficient, and eccentricity.
6. The critical path discovery method for maximizing graph influence according to claim 1, characterized in that, Each candidate path in the candidate path set is a simple path.
7. The critical path discovery method for maximizing graph influence according to claim 1, characterized in that, Before outputting the critical path, step 4 also includes verifying the connectivity of the critical path, verifying that the critical path does not contain duplicate nodes, and verifying that the cumulative influence of the critical path is not lower than the cumulative influence of any other candidate path in the candidate path set. If the verification fails, the maximum search depth is increased or the preset threshold is relaxed, and steps 2 to 3 are repeated.
8. The critical path discovery method for maximizing graph influence according to claim 1, characterized in that, The graph structure corresponding to the graph data is either a directed graph or an undirected graph.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions to implement the critical path discovery method as described in any one of claims 1 to 8.
10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the critical path discovery method as described in any one of claims 1 to 8.
