Graph processing system
AssigneethatDot, Inc.
InventorRyan Wright
Life of this patent
Estimating the term…
Abstract
A graph comprising nodes and edges is stored by a distributed system as a collection of nodes and half-edges stored with their respective nodes. A message processor is associated with a node as needed to process messages passed between nodes, such that a given node has zero or one message processor assigned to it at a given time. Queries of the graph are resolved by processing a first portion of the query at a first node, and forwarding the results with the remaining portions of the query to a node linked by an edge to the present node.
Claims20
A system, comprising:
- at least one processor;
- and
- at least one memory, comprising instructions that, in response to execution by the at least one processor, cause the system to at least:
- store a graph of data comprising a plurality of nodes;
- receive a standing query of the graph of data, the standing query indicative of a pattern to be matched in the graph of data;
- select a first node of the plurality of nodes to evaluate, by a first message processor associated with the first node, a first portion of the standing query, the first portion indicative of a first at least one criteria of a plurality of criteria associated with the standing query, wherein the first node is selected based at least in part on the first at least one criteria being applicable to at least one property associated with the first node;
- select a second node of the plurality of nodes to evaluate, by a second message processor associated with the second node, a second portion of the standing query, the second portion indicative of a second at least one criteria of the plurality of criteria associated with the standing query, wherein the second node is selected based at least in part on the second at least one criteria being applicable to at least one property associated with the second node;
- determine, by the first message processor associated with the first node, that the first portion of the standing query is satisfied, wherein the determination comprises applying the first at least one criteria to the at least one property to determine if the criteria is satisfied, and wherein the determination is made in response to a notification of another determination, by the second message processor associated with the second node, that the second portion of the standing query is satisfied;
- and
- generate a result of the standing query based, at least in part, on the determination by the first message processor that the first portion of the standing query is satisfied and the determination by the second message processor associated with the second node that the second portion of the standing query is satisfied, the result indicating a region of the graph that matches the pattern.
A method, comprising:
- storing a plurality of nodes of a graph, wherein a first node of the plurality of nodes is associated with a first message processor and a second node of the plurality of nodes is associated with a second message processor;
- selecting the first node to evaluate, by the first message processor, a first portion of a standing query of a graph, the standing query indicative of a pattern to be matched in the graph, the first portion indicative of a first at least one criteria of a plurality of criteria associated with the standing query, the first at least one criteria applicable to a property associated with the first node;
- selecting the second node to evaluate, by the second message processor, a second portion of the standing query, the second portion indicative of a second at least one criteria of the plurality of criteria associated with the standing query, the second at least one criteria applicable to a property associated with the second node;
- determining, by the first message processor associated with the first node, that the first portion of the standing query is satisfied, by at least determining that the property associated with the first node satisfies the first at least one criteria;
- determining, by the second message processor associated with the second node, that the second portion of the standing query is satisfied;
- and
- returning a result of the standing query based, at least in part, on the determinations that the first and second portions of the standing query were satisfied, the result comprising an indication that the pattern was matched.
A non-transitory computer-readable storage medium comprising instructions that, in response to execution by at least one processor of at least one computing device, cause the at least one computing device to at least:
- store a plurality of nodes of a graph, wherein a first node of the plurality of nodes is associated with a first message processor and a second node of the plurality of nodes is associated with a second message processor;
- associate a first portion of a standing query of a graph with the first node, the standing query indicative of a pattern to be matched in the graph, the first portion indicative of a first at least one criteria of a plurality of criteria associated with the standing query, the first at least one criteria applicable to a property associated with the first node;
- associate a second portion of the standing query of the graph with the second node, the second portion indicative of a second at least one criteria of the plurality of criteria associated with the standing query, the second at least one criteria applicable to a property associated with the second node;
- determine, by the first message processor, that the first portion of the standing query is satisfied, by at least determining that the property associated with the first node satisfies the first at least one criteria, wherein the first message processor sends the second message processor a notification that the first portion of the standing query has been satisfied;
- determine, by the second message processor, that the second portion of the standing query is satisfied;
- and
- return a result of the standing query based, at least in part, on the determinations that the first and second portions of the standing query are satisfied, the result comprising an indication of a match in the graph of the pattern.
Dependencies are inferred from the claim text.