Hello all,
I am trying to understand how to model use-cases which require removal of a Relationship between two nodes.
Let's say that, we are capturing the current destination of a ship to a port.
<ship1> --- MovingTowards --> <port1>
After some time, ship1 reaches port1, unloads cargo, loads new cargo and then sails for port2. The latest snapshot of the Graph should indicate that clearly.
To capture this correctly, I think I should remove the current relationship between ship1 and port1 and add a new relationship between ship1 and port2
<ship1> --- Moving 'X' Towards --> <port1>, and
<ship1> --- MovingTowards --> <port2>
How do I achieve this using Java APIs? Is this even the right approach? If now, what should be?
-- Nirmalya