Invention Grant
- Patent Title: Method and apparatus for querying shortest path of graph, and storage medium
-
Application No.: US16986120Application Date: 2020-08-05
-
Publication No.: US11657091B2Publication Date: 2023-05-23
- Inventor: Le Deng , Kunbin Chen , Jun Fang
- Applicant: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Current Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Current Assignee Address: CN Beijing
- Agency: Cozen O'Connor
- Priority: CN 1910904822.5 2019.09.24
- Main IPC: G06F16/901
- IPC: G06F16/901 ; G06F16/2455 ; G06F16/28

Abstract:
The present disclosure provides a method and an apparatus for querying the shortest path of a graph, and a storage medium. The method includes: performing a breadth-first search in a distributed graph database with a start entity to be searched and an end entity to be searched as root nodes respectively, and obtaining a layer of new entities for each search; performing an intersection checking on the new entities and entities of the highest layer from a search set on an opposite side, so as to determine whether an intersection between the new entities and the entities of the highest layer exists; and when the intersection exists, determining intersection points, and performing path backtracking through the intersection points to find the shortest path from the start entity to the end entity.
Public/Granted literature
- US20210089580A1 METHOD AND APPARATUS FOR QUERYING SHORTEST PATH OF GRAPH, AND STORAGE MEDIUM Public/Granted day:2021-03-25
Information query