I am new to graph database and stuck with the following issue. I'm trying to store below conditional information in the graph.
when a=1 and b=2 then sum=3
,when a=2 and b=3 then sum=5 and mul=6
Here there are4 pre-conditions[(a=1, b=2),(a=2, b=3)]
,3 post conditions(sum=3,sum=5,mul=6)
The number of pre/post conditions can change from sentence to sentence.
What is the appropriate way to store such information in graphs.
Or please do suggest any other scalable way to store such info which can be easily queried.
One option is to use something like this graph, only
Input
,Cond
andRes
nodes:With a result from a query like this:
Or:
But keep in mind that this works for 'AND' conditions only