Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-10-2021 07:49 AM
We are currently using gds 1.1.1 and using node similarity. The basic projection looks like:
CALL gds.graph.create(
'myGraph',
['Guest', 'Theme'],
"PLAYS_THEME'
);
Question is how to limit the size of the projection by filtering on a Guest property (e.g., where Guest.color = "purple"). Where and how is that where clause entered?
I need to add that the property on which i want to filter is a string, not numeric.
03-11-2021 10:42 AM
You'll need a cypher projection for this:
CALL gds.graph.create.cypher(
'my-graph',
'MATCH (n) WHERE n:Guest AND c.color='Purple' OR n:Theme RETURN id(n) as id',
'MATCH (n:Guest)-[:PLAYS_THEME]->(m:Theme) RETURN id(n) AS source, id(m) AS target'
)
All the sessions of the conference are now available online