mahinash26 commented on issue #939:
URL: https://github.com/apache/age/issues/939#issuecomment-1590729924
In Apache AGE, the corresponding vertices are not deleted when an edge is
removed from a graph. The vertices and edges are like considered independent
entities within the graph. Deleting an edge only impacts the presence of that
specific edge, while the associated vertices remain unaffected.
`SELECT * FROM cypher('test', $$
MATCH (u)-[e:EDGE_LABEL]->(v)
WHERE e.property = 'value'
DELETE e
RETURN e
$$) AS (result agtype);
`
So in this code, 'EDGE_LABEL' should be substituted with the label of the
edges you intend to delete. Additionally, replace 'property' with the specific
property name you want to filter and 'value' with the desired value for
selecting the edges to be removed. By customizing these query parts, you should
be able to filter as well as delete the targeted edges from your graph while
retaining the associated vertices.
I hope this helps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]