Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix similarity algos return #95

Open
tomasonjo opened this issue Sep 10, 2020 · 0 comments
Open

Fix similarity algos return #95

tomasonjo opened this issue Sep 10, 2020 · 0 comments

Comments

@tomasonjo
Copy link
Collaborator

Similarity algos return directed networks.

similar

Currently, the generated query looks like:

MATCH (from)-[rel:`SIMILAR_JACCARD`]-(to)
WHERE exists(rel.`score`)
RETURN from, to, rel.`score` AS similarity
ORDER BY similarity DESC
LIMIT toInteger($limit);

It would need to match a directed relationship, I am also wondering if it makes sense to add id(from) < id(to) to remove all duplicates from the table

I think all similarity algos behave the same, have to double check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant