A temporal network motif calculation method and system supporting incremental updating
Through the incrementally updated temporal network motif calculation method, using triangulated interval lists and top-to-bottom, right-to-left calculation methods, we solve the problems of high computational complexity and insufficient dynamics in the existing technology, and achieve It provides efficient calculation and dynamic update capabilities in large images, and is suitable for scenarios such as road traffic.
Patent Information
- Application Number
- CN202111203453.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-10-15
AI Technical Summary
Existing temporal network motif calculation methods have high computational complexity, cannot be efficiently applied in large graphs, and cannot adapt to dynamic update scenarios, resulting in low efficiency and limitations in structure size definition in practical applications.
This paper proposes a temporal network motif calculation method that supports incremental updates. It calculates the initial results through a static method and updates them based on incremental calculations. Finally, it outputs a connected temporal subgraph that keeps the temporal information parameters unchanged over a long period of time, using triangles. The optimized interval list and top-to-bottom, right-to-left calculation method reduce calculation complexity and support dynamic updates.
It achieves efficient calculation in low-order polynomial time in large-picture scenarios, supports dynamic update environments, and outputs temporal network patterns with actual use value, which is suitable for real-time update scenarios such as road traffic networks.
Smart Images

Figure CN113849947B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of dynamic network and graph database search technology, and in particular to a temporal network motif calculation method and system supporting incremental update. Background Art
[0002] A large number of fields in the real world can be modeled by graphs, such as social networks and computer networks. The reason is that graphs can express both data entities and the connections between data. They are now fully used as a new type of data storage structure. Network motifs refer to recurring and statistically significant subgraphs or patterns in large graphs. Because they can give people a deep understanding of the structure and function of complex networks, they have been applied to biological networks, social networks, electronic circuits, software architectures, transportation networks, etc. With the development of big data, the study of the dynamics of graphs has become increasingly important in analytical systems and applications using graph modeling. Due to different applications in various fields, different terms such as temporal network, dynamic graph, evolving network, evolutionary network, and graph stream are used to describe the dynamics of graphs. As network motifs used to understand complex networks, network motif calculations are necessary in the study of graph dynamics. The present invention relates to an important type of temporal network, that is, a network in which vertices and edges remain fixed and edges change over time. Therefore, this type of network can be regarded as a snapshot of the network at each moment. The road traffic network is a typical example of this type of network, which has important applications in urban computing. In short, temporal network motif computing is to calculate the network motif that meets the definition requirements in the graph given temporal graph data.
[0003] For temporal network motif calculation, the following aspects are directly related to its quality and efficiency during application. First, the ease of use of the temporal network motif definition. It is necessary to design a temporal network motif definition that can be valuable in practical applications. Second, the complexity of the temporal network motif calculation method. If the complexity of the temporal network motif calculation method is too high, it will take too much time to calculate the results, making the method too inefficient in large graphs, thereby limiting the feasibility of the method's application. Third, the dynamic nature of the temporal network. The temporal network motif calculation method needs to dynamically process the calculation results after the temporal network is dynamically updated, rather than recalculating all of them, so that the method can also be applied in actual scenarios where data is dynamically updated.
[0004] Existing temporal network motif calculation methods all define network motifs in temporal networks whose edges change over time, and different temporal network motif definitions are required according to different applications, including different temporal relationships between the temporal attributes of edges, such as partial order and total order, and the temporal attributes of each edge of the entire motif satisfying different temporal windows, such as global and local. However, existing calculation methods all have the following disadvantages: 1) The calculation complexity is too high. Since these methods are all based on isomorphism or subgraph isomorphism (NP-complete problem), the calculation time of motif calculation methods based on subgraph isomorphism is too long. Existing methods often require the structural size of the motif (number of edges, number of vertices) to be limited, so they cannot be widely used in various applications in large graphs; 2) The dynamic nature of temporal networks is not considered. In actual applications, temporal networks change over time, and the calculation results of temporal network motifs will also be updated accordingly. The cost of recalculating the entire result is high, so there is an urgent need for temporal network motif methods that support dynamic updates.
[0005] From the technical background introduction, it can be seen that there are many problems in the current temporal network motif calculation method.
[0006] First, there are problems with the computational efficiency of current temporal network motif calculation methods. In the era of big data, graph data is massive, and existing temporal network motif calculation methods involve subgraph isomorphism checks, which have high computational complexity. The efficiency of calculating temporal network motifs in large graphs is even more unacceptable, and the practicality is poor.
[0007] Secondly, the current definition of the structure size of the temporal network motif has limitations. In order to calculate the temporal network motif in a short time, the existing method limits the structure size of the temporal network motif, which is not conducive to practical use.
[0008] Thirdly, the current temporal network motif calculation methods cannot adapt to dynamic update scenarios. In actual scenarios, the dynamic update of temporal networks requires methods to quickly calculate results. The current temporal network motif calculation methods only support the calculation of all results, but cannot support dynamic updates, that is, updating and calculating new results based on the original results, which limits the practical use of these methods. Summary of the invention
[0009] To this end, the present invention first proposes a temporal network motif calculation method and system that supports incremental updates, which uses the temporal information parameters and network structure recorded by physical network sensors as temporal graph data, such as the congestion status of roads at each time recorded by road traffic network sensors or the power consumption of each region at each time recorded by power system sensors, etc., as input, and first calculates the result motif set by a static method, and then for the temporal graph that is dynamically incrementally updated, based on the static method, updates and calculates the final result temporal network motif set by an incremental calculation method, and outputs all connected temporal subgraphs that keep the temporal information parameters unchanged for a long time, that is, temporal network motifs, such as a number of congested areas composed of a plurality of connected roads and a period of continuous congestion of roads in the area, or a number of peak power consumption areas composed of a plurality of connected pipelines and a period of continuous peak power consumption;
[0010] The static method calculates the resulting motif set based on the triangulated interval list to calculate the network motif. For a very large and non-scalable temporal motif satisfy All possible intervals of the motif can be listed as all intervals in the triangulated interval list. The left endpoints of the intervals in each row of the triangulated interval list are the same, and the right endpoints of the intervals in each column of the triangulated interval list are the same. Based on the triangulated interval list, the temporal network motif calculation method adopts a top-to-bottom and right-to-left approach to calculate the extremely large and non-scalable temporal motif corresponding to each interval in the triangulated interval list in eight steps of a static method; the method for updating and calculating the final result motif set is implemented through ten steps of an incremental calculation method, and finally outputs the final result motif set.
[0011] The eight steps of the static method include: static step 1: reading the temporal graph G and the frequency threshold k; static step 2: initializing the current calculation row number m=1; static step 3: selecting the edges with unchanged labels in each interval of the mth row of the triangulated interval list from the edge set E; static step 4: initializing the current calculation column number i=T, T=T e -T b +1, T b and T e Respectively represent the start time and end time of the temporal graph; static step five: use the edges selected in static step three that keep the label unchanged in the interval [m, i] to construct a maximum temporal motif with an interval of [m, i]; static step six: save the left non-expandable temporal motif in static step five to the final result TF[m, i]; static step seven: determine whether the column number i is greater than m+k-1, if so, reduce the column number i by 1 and go to step five; static step eight: determine whether the row number m is less than T-k+1. If yes, increase the row number m by 1 and go to static step three. If not, output the final result motif set TF.
[0012] The specific implementation method of the static step three or the incremental step three is: define a set S[m, i] as all edges in the edge set E whose labels remain unchanged in the interval [m, i]; define a set R[m, i] as the difference between S[m, i] and S[m, i+1], where m+k-1≤i<T, and R[m, T]=S[m, T]; each set R[m, i] represents an edge set whose labels remain unchanged in the interval [m, i]; define a set EMaxIntvl as the maximum interval corresponding to each edge e, and the set EMaxIntvl contains the interval [m, m+k-1], the edge e keeps the label unchanged in the interval [m, m+k-1], and the label cannot remain unchanged after the interval is expanded;
[0013] Then the static step 3 or the incremental step 3 is implemented as follows: first, initialize each set R[m, i] to an empty set; second, take the first edge e from the edge set E; then, take the interval EMaxIntvl[e] from the set EMaxIntvl initialized as an empty set, denoted as [m′, i′]; if EMaxIntvl[e] is empty, or i′<m, calculate a maximum interval, denoted as [m*, i*], and satisfy the set EM Condition of axIntvl, if [m*, i*] exists, update EMaxIntvl[e] to [m*, i*], and save edge e to the set R[m*, i*]; if i′≥m+k-1, save edge e to the set R[m, i′]; if m≤i′<m+k-1, do nothing; finally, remove one edge e from the edge set E, and continue to take intervals from the set EMaxIntvl; if all edges have been traversed, the step ends.
[0014] The specific implementation of the static step 5 or the incremental step 5 is as follows: first, initialize the set CC[i, T] to be an empty set; then, take the first edge e from the set R[m, i], and determine the connectivity between the edge e and each connected component in the set CC[i, T]. If the edge e is not connected to any connected component, then construct a new connected component G s , to G s Maintain an interval as the value of the set EMaxIntvl[e], and set G s Add to CC[i, T], if edge e is connected to a component G s Connected, then add edge e to G s In, update G s The interval is G s The intersection of the original interval and EMaxIntvl[e], if the edge e is connected to two connected components G s and G s′ Connected, merge the two connected components into a new connected component G ss′ , add edge e to G ss′In, update G ss′ The interval is G s and G s′ The intersection of the original interval and EMaxIntvl[e], take an edge e from the set R[m, i], and go to the step of judging the connectivity between edge e and each connected component in the set CC[i, T]; if all edges have been traversed, the step ends.
[0015] The specific implementation method of the static step six or the incremental step six is as follows: first, for each execution of the static step five, the left non-expandable temporal motif is saved, that is, when the maximum and non-expandable temporal motif of the interval [m, i] is constructed, the maximum and non-expandable temporal motif of all intervals [m, i′] has been obtained, m′<m or m′=m, i<i′≤T, then the temporal motif set of the interval [m, i] is recorded as TF[m, i], and the initialization set TF[m, i] is an empty set; take the first connected component G updated in the static step five from the set CC[i, T] s , remember G s The maintenance interval is [m′, i′], when m′=m, the connected component G s is not extensible and is saved in the set TF[m, i]; otherwise, the connected component G s It is left extensible; then take one connected component G from the set CC[i, T] that has been updated in step 5 s , for the new connected component G s , remember G s The maintenance interval is [m′, i′], when m′=m, the connected component G s is not extensible and is saved in the set TF[m, i]; otherwise, the connected component G s is left extensible; if all connected components with updates have been traversed, the step ends.
[0016] The ten steps of the incremental calculation method include: incremental step 1: reading the updated temporal graph G[1, T+ΔT], the frequency threshold k and the calculated result motif set TF after adding ΔT; incremental step 2: initializing the current calculation row number m=1; incremental step 3: selecting the edges with unchanged labels in each interval of the mth row of TI-Table from the edge set TF[m, T]; incremental step 4: initializing the current calculation column number i=T+ΔT; incremental step 5: using the edges with unchanged labels in the interval [m, i] selected in the incremental step 3, constructing a maximum temporal motif with an interval of [m, i]; incremental step Six: Save the left non-expandable temporal motif in incremental step five to the final result TF[m, i]; Incremental step seven: Determine whether the column number i is greater than T. If so, reduce the column number i by 1 and go to incremental step five to continue; Incremental step eight: Increase the row number m by 1 and determine whether the row number m is greater than T-k+1. If not, go to incremental step three to continue; Incremental step nine: Execute the eight steps of the static method; Incremental step ten: Determine whether the row number m is less than T+ΔT-k+1. If so, increase the row number m by 1 and go to incremental step nine to continue; If not, output the updated final result motif set TF.
[0017] An acquisition module is used to obtain temporal graph data and a frequency threshold k specified by a user; a temporal graph processing module is used to process the temporal graph into a data structure that can be efficiently used by a temporal network motif calculation module and a temporal network motif incremental calculation module; a temporal network motif incremental calculation module applies the temporal network motif calculation method that supports incremental updates to calculate and output incremental updated temporal network motif calculation results.
[0018] The technical effects to be achieved by the present invention are:
[0019] (1) A new temporal network motif and its several extended properties (such as maximal, expandable, etc.) are proposed. The motif is required to appear for a sufficiently long time in a network where the vertices and edges remain fixed and the edges change over time. It meets the requirements of the original network motif for recurrence and statistical significance and has practical value.
[0020] (2) Based on the new temporal network motif, without limiting the size of the temporal network motif structure, a temporal network motif calculation method is proposed. It has low computational complexity and can be efficiently calculated in low-order polynomial time, which is suitable for application in large graph scenarios.
[0021] (3) This new temporal network motif calculation method can effectively support calculations in an incremental update environment. After the temporal network is updated, it is only necessary to obtain new calculation results based on the calculated results and graph data information within a certain range.
[0022] (4) The present invention inputs real-world temporal graph data, such as road traffic network graph data and power system graph data, and outputs all connected temporal subgraphs that keep temporal information parameters unchanged for a long time in response to real-time updates of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Temporal graphs and temporal motifs;
[0024] Figure 2 TI-Table of basic intervals for calculation methods
[0025] Figure 3 Basic flow chart of the new temporal network motif calculation method
[0026] Figure 4 Basic flow chart of the new temporal network motif incremental update calculation method
[0027] Figure 5 Structural diagram of an embodiment of a novel temporal network motif incremental update computing system DETAILED DESCRIPTION
[0028] The following is a preferred embodiment of the present invention and combined with the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to this embodiment.
[0029] The present invention proposes a temporal network motif calculation method and system supporting incremental updates. In order to achieve the above-mentioned invention purpose, the temporal information parameters and network structure recorded by the physical network sensor are used as temporal graph data input, a new type of temporal network motif is first proposed, and based on the motif, a new type of temporal network motif calculation method is given, and finally a supporting incremental update mechanism of the method is given, so as to output all connected temporal subgraphs composed of parameter peaks in the network composed of multiple connected graphs that keep the temporal information parameters unchanged for a long time, that is, the temporal network motif.
[0030] Basic concept definition of temporal network motif calculation problem:
[0031] Temporal graph: Temporal graph G(V, E, L, T b , T e ) is a weighted undirected graph whose edge labels change with time (positive integers), where: (1) V is a finite set of vertices, (2) is a finite set of edges, where (u, v) (or (v, u)) represents an undirected edge between vertices u and v, satisfying (u, v)∈E (or (v, u)∈E), (3) for every time t∈[T b , T e ], L tis a function that maps each edge e in E to a label (expressed as an integer for convenience), representing the label of the edge at time t, (4)[T b , T e ] represents the interval of the temporal diagram, and (T e -T b +1) timestamp, T b and T e Respectively represent the start time and end time of the temporal diagram (T b ≤T e ). When the interval is clear, a temporal graph is simplified using G(V, E, L).
[0032] The schematic diagram of the temporal diagram is as follows Figure 1 (a) shows a temporal graph with an interval of [1, 6]. It can be seen intuitively that (1) a temporal graph G(V, E, L) is essentially a graph consisting of T = T e -T b +1 The ordered arrangement of static graphs can be formally expressed as <G1(V,E,L 1 ), ..., G T (V, E, L T )>, (2) edge label L t (e) can represent the state of edges such as distance, communication delay or travel time at a certain moment. In addition, the temporal graph G(V, E, L) is called the state graph at time t(t∈[T b , T e ])’s graph structure and edge labels are snapshots.
[0033] Temporal subgraph: Temporal graph It is a temporal graph G(V, E, L, T b , T e ) subgraph, using Indicates that the conditions are met and And for any time and any edge e∈E s YesL s t (e) = L t (e) Establishment.
[0034] Temporal motifs: temporal subgraphs is a temporal motif if and only if it satisfies the following conditions: (1) G s is a connected subgraph of the temporal graph G, (2) E s For each edge e of That is, each edge in the interval All times in have the same label, and (3) That is, it appears in at least k consecutive snapshots, and k is called the frequency threshold. Assuming the frequency threshold k = 4, the schematic diagram of the temporal motif is as follows Figure 1 As shown in (b), it satisfies the above three conditions.
[0035] Extensible temporal motifs: Temporal motifs is left (or right) extensible if and only if for E s For each edge e of Established. That is, when G s is left (or right) extensible, for each edge e∈E s , its label is (or remains unchanged. When the temporal modality G s When G is neither left-expandable nor right-expandable, s It is not scalable.
[0036] Extremely large temporal motifs: Temporal motifs is maximal if and only if there is no edge e between G s Connected, but e∈E, and
[0037] Temporal network motif computation problem: Given a temporal graph G(V, E, L, T b , T e ) and frequency threshold k, the temporal network motif computation problem requires finding all extremely large and non-scalable temporal motifs
[0038] A new static temporal network motif calculation method:
[0039] After giving the temporal motif related definitions and problem definitions, the present invention provides a method for calculating the temporal network motif. For convenience, assume that the starting time T b =1 and the end time is T e =T. This method is based on a triangulated interval list, called TI-Table, such as Figure 1 shown.
[0040] It is easy to see that all extremely large and non-scalable temporal motifs satisfy Therefore, all possible intervals of the motif can be listed as all intervals in the TI-Table. The left endpoints of the intervals in each row of the list are the same, and the right endpoints of the intervals in each column are the same. Based on the TI-Table, the temporal network motif calculation method uses a top-to-bottom (T2B) and right-to-left (R2L) approach to calculate the extremely large and non-scalable temporal motif corresponding to each interval in the TI-Table. The overall process is as follows: Figure 2 shown.
[0041] Specifically, the calculation process is divided into the following steps:
[0042] (1) Read the temporal graph G and frequency threshold k
[0043] (2) Initialize the current calculation row number m = 1
[0044] (3) Select the edges whose labels remain unchanged in each interval of the mth row of the TI-Table from the edge set E (computeRES)
[0045] (4) Initialize the current calculation column number i = T
[0046] (5) Using the edges selected in (3) that keep their labels unchanged in the interval [m, i], construct a maximal temporal motif (generateMaxTM) in the interval [m, i]
[0047] (6) Save the non-expandable temporal motif on the left in (5) to the final result TF[m, i] (generateExpTM)
[0048] (7) Determine whether the column number i is greater than m+k-1. If so, reduce the column number i by 1 (R2L) and go to step (5) to continue.
[0049] (8) Determine whether the row number m is less than T-k+1. If so, increase the row number m by 1 (T2B) and go to step (3); if not, output the final result motif set TF
[0050] The following describes steps (3), (5) and (6) respectively.
[0051] Step (3): Select the edges whose labels remain unchanged in each interval of the mth row of TI-Table from the edge set E (computeRES)
[0052] Define the set S[m, i] as all the edges in the edge set E whose labels remain unchanged in the interval [m, i]; define the set R[m, i] as the difference between S[m, i] and S[m, i+1] (m+k-1≤i<T), and R[m, T]=S[m, T]. Since the sets R[m, i] are mutually exclusive, each set R[m, i] can be used to represent the set of edges whose labels remain unchanged in the interval [m, i], and these edges cannot keep their labels unchanged in the interval [m, i+1]. Based on the above properties, step (3) is to calculate the set R[m, i] (m+k-1≤i≤T).
[0053] Let the set EMaxIntvl be the maximum interval corresponding to each edge e, satisfying the following: (1) it contains the interval [m, m+k-1], (2) the label of edge e remains unchanged in the interval, and the label cannot remain unchanged after the interval is expanded. The specific process of step (3) is given below.
[0054] 1) Initialize each set R[m, i] to an empty set
[0055] 2) Take the first edge e from the edge set E
[0056] 3) Take the interval EMaxIntvl[e] from the set EMaxIntvl (initialized to empty), denoted as [m′, i′]
[0057] 4) If EMaxIntvl[e] is empty, or i′<m, calculate a maximum interval (denoted as [m*, i*]) that satisfies the two conditions of the set EMaxIntvl. If [m*, i*] exists, update EMaxIntvl[e] to [m*, i*], and save edge e to the set R[m*, i*]
[0058] 5) If i′≥m+k-1, edge e is saved to the set R[m,i′]; if m≤i′<m+k-1, no operation is performed.
[0059] 6) Remove an edge e from the edge set E and go to step 3) to continue; if all edges have been traversed, the step ends
[0060] Step (5): Construct a maximum temporal motif (generateMaxTM) with an interval of [m, i]
[0061] The main function of step (5) is to construct a maximal temporal motif with an interval of [m, i] using the edges in the set R[m, i] calculated in step (3). Since the top-down and right-to-left approach is adopted, when constructing the maximal temporal motif with an interval of [m, i], the maximal and non-expandable temporal motifs of all intervals [m, j] (j∈[i+1, T]) and the set R[m, i] from the 1st row to the mth row have been obtained. The connected component set CC[i, T] represents the connected component composed of all edges in the edge set S[m, i]=R[m, i]∪R[m, i+1]∪...∪R[m, T]. Step (5) is to add the edges in the set R[m, i] to the set CC[i+1, T] (for convenience, the set CC[T+1, T] is represented as an empty set), and calculate the set CC[i, T] according to the connectivity, where each updated connected component corresponds to a maximum temporal motif. The specific process of step (5) is given below.
[0062] 1) Initialize the set CC[i, T] to the set CC[i+1, T]
[0063] 2) Take the first edge e from the set R[m, i]
[0064] 3) Determine the connectivity between edge e and each connected component in the set CC[i, T]
[0065] 4) If edge e is not connected to any connected component, construct a new connected component G s , to G s Maintain an interval as the value of the set EMaxIntvl[e], and set G s Add to CC[i, T]
[0066] 5) If edge e is connected to a component G s Connected, then add edge e to G s In, update G s The interval is G s The intersection of the original interval and EMaxIntvl[e]
[0067] 6) If edge e is connected to two components G s and G s′ Connected, merge the two connected components into a new connected component G ss′ , add edge e to G ss′ In, update G ss′ The interval is G s and G s′ The intersection of the original interval and EMaxIntvl[e]
[0068] 7) Take an edge e from the set R[m, i] and go to step 3) to continue; if all edges have been traversed, the step ends
[0069] Step (6): Save the left non-expandable temporal motif (generateExpTM)
[0070] The main function of step (6) is to save the left non-expandable temporal motif in step (5) to the final result TF[m, i], which is based on the property that the maximal temporal motifs obtained in step (5) are all right non-expandable. Each time step (5) is executed, the left non-expandable temporal motif is saved therefrom, that is, when the maximal and non-expandable temporal motif of the interval [m, i] is constructed, the maximal and non-expandable temporal motifs of all intervals [m, i′] (m′<m or m′=m, i<i′≤T) have been obtained.
[0071] The set of temporal motifs with interval [m, i] is denoted as TF[m, i]. The specific process of step (6) is given below.
[0072] 1) Initialize the set TF[m, i] to an empty set
[0073] 2) Take the first connected component G updated in step (5) from the set CC[i, T] s
[0074] 3) Remember G s The maintenance interval is [m′, i′], when m′=m, the connected component G s is not extensible and is saved in the set TF[m, i]; otherwise, the connected component G s Is left expandable
[0075] 4) Take one connected component G from the set CC[i, T] that has been updated in step (5) s , go to step 3) to continue; if all connected components with updates have been traversed, the step ends
[0076] Incremental calculation method for new temporal network motifs:
[0077] The following is an incremental calculation method for the new temporal network motif. Due to its support for dynamics, the incremental calculation method is more efficient than the static new temporal network motif calculation method. The flowchart of the incremental calculation method for the new temporal network motif is as follows: Figure 4 shown.
[0078] Specifically, the calculation process is divided into the following steps:
[0079] (1) Read the updated temporal graph G[1, T+ΔT], the frequency threshold k, and the calculated result motif set TF
[0080] (2) Initialize the current calculation row number m = 1
[0081] (3) Select the edges whose labels remain unchanged in each interval of the mth row of the TI-Table from the edge set TF[m, T] (computeRES)
[0082] (4) Initialize the current calculation column number i = T + ΔT
[0083] (5) Using the edges selected in (3) that keep their labels unchanged in the interval [m, i], construct a maximal temporal motif (generateMaxTM) in the interval [m, i]
[0084] (6) Save the non-expandable temporal motif on the left in (5) to the final result TF[m, i] (generateExpTM)
[0085] (7) Determine whether the column number i is greater than T. If so, reduce the column number i by 1 (R2L) and go to step (5) to continue.
[0086] (8) Increase the row number m by 1 (T2B) and determine whether the row number m is greater than T-k+1. If not, go to step (3) to continue; (9) Execute the static method (the method in 3.2.2)
[0087] (10) Determine whether the row number m is less than T+ΔT-k+1. If so, increase the row number m by 1 (T2B) and go to step (9) to continue; if not, output the updated final result motif set TF.
[0088] Compared with the static novel temporal network motif calculation method, the incremental calculation method of the present invention has the following characteristics: 1) In step (3), the edge selection from the edge set E is changed to the edge selection from the edge set TF[m,T], which minimizes the calculation range and avoids redundant calculation; 2) When the row number m is not greater than T-k+1, only the temporal motifs in the interval [m,j] (T≤j≤T+ΔT) are calculated, and the temporal motifs in other intervals have been calculated and do not need to be calculated repeatedly; 3) Only when the row number m is greater than T-k+1, the incremental calculation method has the same steps as the static method. In summary, the incremental calculation method has the advantage of efficiency.
Claims
1. A temporal network motif calculation method supporting incremental update, characterized in that: Taking the congestion status of the road and the network structure at each time recorded by the road traffic network sensor as the input of the temporal graph data, first calculate the result motif set by a static method. Then, for the dynamically incrementally updated temporal graph, on the basis of the static method, update and calculate the final result temporal network motif set by an incremental calculation method, and output all connected temporal subgraphs that keep the temporal information parameters unchanged for a long time; The static method calculates the resulting motif set based on the triangulated interval list to calculate the network motif. For a very large and non-scalable temporal motif satisfy All possible intervals of the motif can be listed as all intervals in the triangulated interval list, the interval left endpoints of each row of intervals in the triangulated interval list are the same, and the interval right endpoints of each column of intervals are the same. Based on the triangulated interval list, the temporal network motif calculation method adopts a top-to-bottom and right-to-left approach to calculate the extremely large and non-scalable temporal motif corresponding to each interval in the triangulated interval list in eight steps of a static method; the method for updating and calculating the final result motif set is implemented through ten steps of an incremental calculation method, and finally outputs a result motif set of several congested areas composed of multiple connected roads and a continuous congestion period of roads in the area; The eight steps of the static method include: static step 1: reading the temporal graph G and the frequency threshold k; static step 2: initializing the current calculation row number m=1; static step 3: selecting the edges with unchanged labels in each interval of the mth row of the triangulated interval list from the edge set E; static step 4: initializing the current calculation column number i=T, T=T e -T b +1, T b and T e Respectively represent the start time and end time of the temporal graph; static step five: use the edges selected in static step three that keep the label unchanged in the interval [m, i] to construct a maximum temporal motif with an interval of [m, i]; static step six: save the left non-expandable temporal motif in static step five to the final result TF[m, i]; static step seven: determine whether the column number i is greater than m+k-1, if so, reduce the column number i by 1 and go to step five; static step eight: determine whether the row number m is less than T-k+1, if so, increase the row number m by 1 and go to static step three, if not, output the final result motif set TF; The ten steps of the incremental calculation method include: Incremental step 1: Read the updated temporal graph G[1, T+ΔT], the frequency threshold k, and the already calculated result motif set TF at the time of increasing ΔT; Incremental step 2: Initialize the current calculation row number m = 1; Incremental step 3: Select the edges with unchanged labels in each interval of the m-th row of the TI-Table from the edge set TF[m, T]; Incremental step 4: Initialize the current calculation column number i = T+ΔT; Incremental step 5: Use the selected edges with unchanged labels in the interval [m, i] in Incremental step 3 to construct a maximal temporal motif with the interval [m, i]; Incremental step 6: Save the temporally non-extendable motif on the left in Incremental step 5 to the final result TF[m, i]; Incremental step 7: Judge whether the column number i is greater than T. If so, decrease the column number i by 1 and go back to Incremental step 5 to continue; Incremental step 8: Increase the row number m by 1. Judge whether the row number m is greater than T-k+1. If not, go back to Incremental step 3 to continue; Incremental step 9: Execute the eight steps of the static method; Incremental step 10: Judge whether the row number m is less than T+ΔT-k+1. If so, increase the row number m by 1 and go back to Incremental step 9 to continue; If not, then output the updated final result motif set TF.
2. A temporal network motif calculation method supporting incremental update as claimed in claim 1, characterized in that: The specific implementation method of the static step 3 or the incremental step 3 is: Define the set S[m, i] as all the edges in the edge set E with unchanged labels in the interval [m, i]; Define the set R[m, i] as the difference set between S[m, i] and S[m, i+1], where m+k-1≤i<T, and R[m, T] = S[m, T]; Each set R[m, i] represents the edge set with unchanged labels in the interval [m, i]; Define the set EMaxIntvl as the maximum interval corresponding to each edge e. The set EMaxIntvl contains the interval [m, m+k-1], and the edge e has unchanged labels in the interval [m, m+k-1], and the interval cannot keep the labels unchanged after expansion; Then the implementation method of the static step 3 or the incremental step 3 is as follows: First, initialize each set R[m, i] as an empty set; Second, take the first edge e from the edge set E; Then, take the interval EMaxIntvl[e] from the set EMaxIntvl initialized as an empty set, denoted as [m′, i′]; If EMaxIntvl[e] is empty, or i′ < m, calculate a maximum interval, denoted as [m*, i*], and satisfy the conditions of the set EMaxIntvl. If [m*, i*] exists, update EMaxIntvl[e] to [m*, i*], and save the edge e to the set R[m*, i*]; If i′ ≥ m + k - 1, save the edge e to the set R[m, i′]; If m ≤ i′ < m + k - 1, do nothing; Finally, take the next edge e from the edge set E, and continue to take the interval from the set EMaxIntvl; If all edges have been traversed, the step ends.
3. A temporal network motif calculation method supporting incremental update as claimed in claim 1, characterized in that: The specific implementation of the static step 5 or the incremental step 5 is as follows: first, initialize the set CC[i, T] to be an empty set; then, take the first edge e from the set R[m, i], and determine the connectivity between the edge e and each connected component in the set CC[i, T]. If the edge e is not connected to any connected component, then construct a new connected component G s , to G s Maintain an interval as the value of the set EMaxIntvl[e], and set G s Add to CC[i, T], if edge e is connected to a component G s Connected, then add edge e to G s In, update G s The interval is G s The intersection of the original interval and EMaxIntvl[e], if the edge e is connected to two connected components G s and G s′ Connected, merge the two connected components into a new connected component G ss′ , add edge e to G ss′ In, update G ss′ The interval is G s and G s′ The intersection of the original interval and EMaxIntvl[e], take an edge e from the set R[m, i], and go to the step of judging the connectivity between edge e and each connected component in the set CC[i, T]; if all edges have been traversed, the step ends.
4. The temporal network motif calculation method supporting incremental update according to claim 1, characterized in that: The specific implementation manner of the static step six or the incremental step six is as follows: First, for each execution of the static step five, the left non-extendable temporal motif is saved. That is, when constructing the maximal and non-extendable temporal motif with the construction interval [m, i], all maximal and non-extendable temporal motifs with the interval [m, i'], where m' < m or m' = m, i < i' ≤ T, have been obtained. Then, denote the set of temporal motifs with the interval [m, i] as TF[m, i], and initialize the set TF[m, i] to be an empty set; take the first connected component G updated in the static step five from the set CC[i, T] s , denote G s 's maintained interval as [m', i']. When m' = m, this connected component G s is non-extendable and is saved to the set TF[m, i]; otherwise, this connected component G s is left-extendable; then take the next connected component G updated in step five from the set CC[i, T] s , and for the new connected component G s , denote G s 's maintained interval as [m', i']. When m' = m, this connected component G s is non-extendable and is saved to the set TF[m, i]; otherwise, this connected component G s is left-extendable; if all updated connected components have been traversed, the step ends.
5. A temporal network motif computing system supporting incremental updates, characterized in that: An acquisition module for acquiring temporal graph data and a user-specified frequency threshold k; A temporal graph processing module for processing the temporal graph into a data structure that can be efficiently used by the temporal network motif calculation module and the temporal network motif incremental calculation module; A temporal network motif incremental calculation module that applies the temporal network motif calculation method supporting incremental update described in any one of claims 1-4 to calculate and output the calculation result of the incremental update temporal network motif.
