Skip to content

Fix similarity algos return #95

@tomasonjo

Description

@tomasonjo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions