cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Creating Stateful nodes in Neo4j

jamshaid
Node

When I say Stateful Node, I mean a node that carries ‘state info,’ such as the path that leads to this node. E.g. R1 is a node, and

  • state1: link coming from path 1

  • state2: link coming from path 2

Is there any way I could create such a node in Neo4j? While traversing such a node, I expect it to behave like this:

  • if state 1, and input is x, then [:has] node1
  • if state one and input is y, then stop
  • if state two and input is z, then [: has] node 2.

I want to convert node R1 to a stateful node so that it keeps the information mentioned above. Does Neo4J support such nodes? If so, could you guide me to a resource? Also, does the cipher query support the ‘stateful’ approach so I can set the state according to the path from which R1 is produced?

 

Example graph is attached as Image

0 REPLIES 0