Time series shortest path query method based on neo4j database
A query method and shortest path technology, applied in geographic information databases, other database retrieval, other database indexes, etc., can solve problems such as the problem of inability to calculate the shortest path of time series, and achieve high practical value and improve efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] The problem to be solved by the present invention is to overcome the defects of NEO4J unable to calculate the problem shortest circuit query problem, extend the shortest circuit query function of the NEO4J timing diagram, and in the form of the plugin to the NEO4J database.
[0061] Firstly, the relevant definition of the invention:
[0062] Definition 1 (timing diagram Temporal Graph): timing chart G = (V, E), where V is the set of vertices of G, E is the set of edges of G, e∈E group consisting of consisting of a quaternary, e = d , T a >, Where u, v∈V, u represents the trailing edge of the directed arcs, v represents the head has an arc edge, T d Departure time from u to v's, T a Is the arrival time from u to v. When applied to a timing chart G public transport network, represented by a five-tuple edge, i.e. e = d , T a , B>, b represents the vehicle at time T d From the site u, at time T a Reaching the site v.
[0063] For example, figure 1 Is a six vertices v1, v2, v3, ...
Embodiment 2
[0131] like figure 1 As shown, this is a timing chart, which can represent a traffic network. The vertices are connected between the vertices, with timing information, representing the departure time and arrival time, and the corresponding vehicle information.
example 1
[0133] Query EAP (V1, V6, 8). The present invention invokes the EAP-Temporal-Dijkstra algorithm for solving. Add a V1 to S, first of all, V1 satisfies the arrival of TD> = 8. The second iterations, select the maximum vertex V2 that is the smallest to the time t in EAT. Add V2 to S, for V2 satisfying the edges of TD> = 10, E2, E6, then update Eat, Pre, prereel table using E2, E6 timing information. The third iteration, selecting the minimum point in EAT is not in the point V6. Since V6 is the target end point, the search ends at this time. The results of EAP (V1, V6, 8) are by querying EAT, PRE, PREEREL. Figure 4 Applying for the EAP-TEMPORAL-DIJKSTRA algorithm of the present invention in figure 1 Search process. The specific iterative process is like Figure 5 Indicated.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


