摘要 |
Disclosed are a search method and apparatus for graph data, the method comprising: acquiring a query request, wherein the query request comprises a query condition carrying an initial graph node and is used for querying a first graph node to be queried matching the query condition in a graph data set, and the graph data set comprises the initial graph node, a plurality of graph nodes to be queried, correlation relationships between the initial graph node and the plurality of graph nodes to be queried and correlation relationships between each of the plurality of graph nodes to be queried and the other graph nodes (S101); filtering off a second graph node to be queried not meeting the query condition and correlation relationships comprising the second graph node to be queried according to the query condition and a preset available resource condition, in order to obtain a reduction sub-graph, wherein the reduction sub-graph comprises the initial graph node, the first graph node to be queried matching the query condition and a correlation relationship between the initial graph node and the first graph node to be queried (S102); and querying the reduction sub-graph through the query condition to obtain the first graph node to be queried (S103). The method improves the efficiency in graph data search and saves memory resources and time resource of computers. |