java.lang.Object
org.evomaster.client.java.controller.neo4j.data.Neo4jNode

public class Neo4jNode extends Object
A node of a captured Neo4j graph, used as the G side when computing the heuristic H(Q, G). It is the in-memory counterpart of a stored node: a stable id (the driver's elementId), the set of labels, and the property map.

This is a plain data holder built either by hand (tests) or by reading the live database; it has no relation to PatternNode, which is the structural node of a parsed query pattern.

  • Constructor Details

  • Method Details

    • getId

      public String getId()
    • getLabels

      public Set<String> getLabels()
    • getProperties

      public Map<String,Object> getProperties()
    • hasProperty

      public boolean hasProperty(String key)
      Returns true when the property is present on this node. Distinguishes an absent property (the operand cannot be valuated) from a present property whose value is null.
    • getProperty

      public Object getProperty(String key)
      The value of the given property, or null if it is absent or present with a null value. Use hasProperty(String) to tell those two apart.
    • toString

      public String toString()
      Overrides:
      toString in class Object