Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-16-2022 02:38 AM
Hi,
I want to get the best person for the best job. So that I used nodeSimilarity. But I don't know if it is the best approach.
I create the code:
CALL gds.graph.project(
'test1',
['Job', 'Candidate', 'Skill'],
{
HAS_COMPETENCY: { properties: "experience_years" },
IS_REQUIRED: { properties: "experience_years" }
}
)YIELD graphName AS graph,relationshipProjection AS nodesProyection,nodeCount AS nodes,relationshipCount AS rels
And then
CALL gds.alpha.nodeSimilarity.filtered.stream('test1', {sourceNodeFilter:'Job', targetNodeFilter:'Candidate' } )
YIELD node1, node2, similarity
RETURN gds.util.asNode(node1).jobId AS job, gds.util.asNode(node2).name AS candidate, similarity
ORDER BY similarity DESCENDING
Thanks in advance!
All the sessions of the conference are now available online