Hey Nigel, How would adding a feature to change the relationship affect its ability to perform matching?
I mean I understand that it would be not the most trivial function to have, but in the end I don't see how it's different to change the relationships as opposed to deleting them and making the new ones again... Will appreciate if you can explain, so I can better understand the logic behind it. Thanks! On Sunday, July 21, 2013 5:59:41 PM UTC+2, Nigel Small wrote: > > Relationships are immutable by design and that is very unlikely to change > as this is fundamental to the design of Neo4j. Among other things, this > allows matching to be carried out efficiently within the database engine. > > > On 21 July 2013 16:41, Nicholas Stuart <[email protected] <javascript:> > > wrote: > >> This shouldn't be that difficult. At the store level, a relationship just >> has a reference to the relationship type id, so it should just be a matter >> of changing that ID into what you want. I agree that this would be a handy >> feature to have. >> >> >> On Friday, July 19, 2013 8:09:50 PM UTC+3, Sébastien Heymann wrote: >>> >>> +1 for changing relationship type without the burden of re-creating it. >>> >>> Le mardi 13 novembre 2012 20:26:36 UTC+1, Marko Rodriguez a écrit : >>>> >>>> Hi, >>>> >>>> You have to delete the edge and create a new one. >>>> >>>> You can change a "status" property on the edge if you want as property >>>> key/values are mutable. >>>> >>>> e.status = 'its complicated' >>>> >>>> HTH, >>>> Marko. >>>> >>>> http://markorodriguez.com >>>> >>>> On Nov 13, 2012, at 10:45 AM, Mateusz Kieblesz wrote: >>>> >>>> Hello, >>>> >>>> Sorry in advance - it look like a newbie question :) >>>> >>>> is there is possible way to change relationship status/label?? I tried >>>> to do this with gremlin: >>>> >>>> >>>> - gremlin> e = g.e(10) >>>> - ==> e[10][9-->10] >>>> - gremlin> e.label >>>> - ==> >>>> - gremlin> e = g.e(14) >>>> - ==> e[14][8-next->13] >>>> - gremlin> e.label >>>> - ==> next >>>> - gremlin> e.label='is_in' >>>> - ==> Cannot set readonly property: label for class: >>>> com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jEdge >>>> >>>> >>>> The solution to delete relationship and create new one with desired >>>> relationship label (in this case 'next') is a little bit cunterintuitive. >>>> I >>>> will be gratefull to someone for providing me an answer. >>>> >>>> -- >>>> >>>> >>>> >>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
