mage icon indicating copy to clipboard operation
mage copied to clipboard

Implement subgraph for pagerank

Open jmatak opened this issue 3 years ago • 0 comments

Description

Execution of Pagerank by providing nodes and edges to subgraph method.

Example of usage:

    MATCH (n)-[e]->(m)
    WHERE n.id <= 6 AND m.id <= 6
    WITH COLLECT(e) AS edges
    MATCH (n) WHERE n.id <= 6
    WITH COLLECT(n) AS nodes, edges
    CALL pagerank.get_subgraph(nodes, edges, 1000) YIELD node, rank
    RETURN node.id AS node, rank
    ORDER BY node ASC

Pull request type

  • [x] Feature

Related issues

Delete if this PR doesn't resolve any issues. Link the issue if it does.

######################################

Reviewer checklist (the reviewer checks this part)

Module/Algorithm

  • [ ] Core algorithm/module implementation
  • [x] Query module implementation
  • [ ] Unit tests
  • [x] End-to-end tests
  • [ ] Code documentation
  • [ ] README short description
  • [ ] Documentation on memgraph/docs

######################################

jmatak avatar Aug 30 '22 13:08 jmatak