Package org.evomaster.client.java.controller.neo4j.heuristics
package org.evomaster.client.java.controller.neo4j.heuristics
-
ClassesClassDescriptionDeep-clones a
CypherCondition(orOperand) while substituting the variable names it refers to, according to a rename map.Evaluates the truthnessρ(condition, m)of a singleCypherConditionunder a structural mappingm, recursively over the typed boolean tree the parser produces (And/Or/Xor/Not, comparisons, label/type/property leaves).Computes the search heuristicH(Q, G)of a parsed Cypher MATCH queryQagainst a captured graphG, returning aTruthness(how closeGis to satisfyingQ).A single structural mappingm = (μ, ε)from a query patternP_sonto a graphG: it binds each pattern node variable to a graph node (μ) and each pattern edge variable to a graph relationship (ε).Flattens aMatchPatterninto one with no variable-length relationships and no quantified path patterns (QPPs), so the rest of the calculator only ever deals with plain nodes and edges.Enumeratesmatched_elements(P_s, G): every structurally valid mapping(μ, ε)of a stripped pattern onto a graph.