Class Neo4jMapping
java.lang.Object
org.evomaster.client.java.controller.neo4j.heuristics.Neo4jMapping
A single structural mapping
m = (μ, ε) from a query pattern P_s onto a graph
G: it binds each pattern node variable to a graph node (μ) and each pattern edge
variable to a graph relationship (ε). Bindings are keyed by the variable name the parser
assigned (a real name like n, or an anonymous _anon_node_0 / _anon_rel_0),
which is shared between the PatternEdge/PatternNode and the conditions that refer
to it, so condition valuation can resolve a variable to its bound graph element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcopy()The graph relationship bound to the given pattern variable, ornullwhen this mapping does not bind it.The graph node bound to the given pattern variable, ornullif this mapping does not bind one.booleanisNodeBound(String variable) toString()booleanTrue when this graph edge is already used by some pattern edge in this mapping.
-
Constructor Details
-
Neo4jMapping
public Neo4jMapping()
-
-
Method Details
-
copy
-
getNode
The graph node bound to the given pattern variable, ornullif this mapping does not bind one. Anullreturn is a normal outcome, not an error: it is howresolvePropertytells a node variable from a relationship variable, and how a condition on an unbound variable is detected (it yields noρ, and the aggregation skips it).The variable itself is never
null: the parser names every pattern element, and every condition, operand and edge endpoint guards its variable name at construction. Guarding it here keeps anullname, which would be a bug, from silently looking like an unbound variable. -
getEdge
The graph relationship bound to the given pattern variable, ornullwhen this mapping does not bind it. Same contract asgetNode(String). -
isNodeBound
-
bindNode
-
bindEdge
-
usesEdge
True when this graph edge is already used by some pattern edge in this mapping. Cypher enforces relationship uniqueness within a single MATCH, so the enumerator avoids reusing one. -
toString
-