Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-31-2022 12:34 AM
Newbie question: I am dealing with a graph where the XYZ position of a node is important. I am using py2neo to generate the graph. I can save and retrieve custom XYZ attributes, but I am wondering if there is a way to set the built-in PositionX, PositionY, PositionZ.
01-31-2022 08:25 AM
Maybe I didn't get it your request, but I think this page is what you need.
That is, for example:
MATCH (n:Node {prop: 'value'}) SET n.pointProperty = point({x: 0, y: 4, z: 1}) AS point3D
01-31-2022 09:10 AM
Yes thank you. I need to set the point attribute. Now I need to know if there is a way to set the “point” attribute from py2neo call instead from a cypher statement. If you happen to know that, it would be great.
02-03-2022 08:02 AM
Unfortunately, I've never used Python with Neo4j.
Anyway, I think this is the needed code:
https://neo4j.com/docs/api/python-driver/current/api.html#cartesianpoint
All the sessions of the conference are now available online