Cypher projection from subgraph, GDS Algos

Hi Neo4j Community,

This is my first post in the community! The community has been a great source of help for me so far. Thanks.

I have a question about Cypher Projections in the GDS Library.

I want to create a subgraph from a node and generate a graph projection of that so that i can run pagerank.

How can I create a cypher projection using a variable length query? I'm having difficulty since the format it expects is source id and target.

Example: Create a cypher projection graph for 1/2 hop neighbors of a particular node
(n)-[*1..2]-(m)

Hello @shreyas.chandrakalad and welcome to the Neo4j community :slight_smile:

Did you have a look at the documentation?

Regards,
Cobra

1 Like