cancel
Showing results for 
Search instead for 
Did you mean: 

Neo4j Algorithm Filtering

parthiv3215
Node Clone

hello, 

I have a graph wherein users have specific characteristics and these users have rated some products.

Step 1 - Filter out all the similar users to one particular user based on their characteristics. For example user A is looking for a recommendation and there is info for 10 users B,C,D,E,F,G,H,I,J,K. The 5 users most similar to A are C,D,E,F,J.

Step 2 - Run a centrality algorithm to find the most popular products but the algorithm should only take into account the information for users C,D,E,F and J (top 5 users). 

Can someone help me with how I can filter for these top 5 users. What I could think of is adding  an addition label/property to the top 5 users but that would alter the graph. Any help Is greatly appreciated. 

1 REPLY 1

Hello @parthiv3215. I think you are looking for how to project a subgraph. Have you already taken a look at this?
https://neo4j.com/docs/graph-data-science/current/graph-project-subgraph/

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.