摘要 |
A graph data query method and apparatus are disclosed, where the method includes: acquiring a partition number and a layer number of a query vertex; determining, based on the partition number and the layer number of the query vertex, a partition number and a layer number of a candidate vertex indicated by a query condition, and using them as a candidate partition number and a candidate layer number; foiming a candidate set by using a vertex whose partition number and layer number satisfy any group of a candidate partition number and a candidate layer number; and performing graph data query in the candidate set according to the query condition. By using the solution, graph data query efficiency is improved. |