1. A computer system comprising: at least one processor; and at least one memory storing: a data graph of nodes connected by edges, a plurality of saved queries, each query defined by one or more constraints to be satisfied for membership in query results for the query, each constraint specifying an at least one of the edges, and instructions that, when executed by the at least one processor, cause the system to: identify a target constraint responsive to an operation that updates the data graph with a source node, an update edge, and a target node, the target constraint specifying a path that includes the update edge and the target constraint belonging to a first saved query, evaluate the target constraint for a member node to determine a state for the target constraint by traversing the graph via the path of the target constraint, determine whether a collapsed definition for the first saved query, based on the state, indicates the member node is responsive or not responsive to the first saved query, and update a saved query result of the first saved query with the member node in accordance with the collapsed definition when the collapsed definition indicates the member node is responsive or not responsive.