Hello,
I tried the following:
CREATE (nAlice:User {name: 'Alice'})
CREATE (nBridget:User {name: 'Bridget'})
CREATE (nCharles:User {name: 'Charles'})
CREATE (nDoug:User {name: 'Doug'})
CREATE (nMark:User {name: 'Mark'})
CREATE (nMichael:User {name: 'Michael'})
CREATE (nAlice)-[:LINK {weight: 0.5}]->(nBridget)
CREATE (nAlice)-[:LINK {weight: 4}]->(nCharles)
CREATE (nMark)-[:LINK {weight: 1.1}]->(nDoug)
CREATE (nMark)-[:LINK {weight: 2}]->(nMichael);
and
CALL gds.wcc.write({
nodeProjection: 'User',
relationshipProjection: 'LINK',
relationshipWeightProperty: 'weight',
threshold: 1.0,
writeProperty: 'componentId'}
)
but got the following error:
Failed to invoke procedure `gds.wcc.write`: Caused by: java.lang.IllegalArgumentException: Relationship weight property `weight` not found in graph with relationship properties: []
Is there a simple syntax error that I do not see? Please let me know.