# Subgraph similarity (for an exam)

**URL:** <https://community.neo4j.com/t/subgraph-similarity-for-an-exam/20116>\
**Category:** Neo4j Graph Platform\
**Tags:** apoc\
**Created:** [June 16, 2020, 2:56pm UTC](https://community.neo4j.com/t/subgraph-similarity-for-an-exam/20116 "2020-06-16T14:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalvatoreAntoninoGri](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/salvatoreantoninogri/32/12098_2.png) [@SalvatoreAntoninoGri](https://community.neo4j.com/u/SalvatoreAntoninoGri)\
**Post date:** [June 16, 2020, 2:56pm UTC](https://community.neo4j.com/t/subgraph-similarity-for-an-exam/20116/1 "2020-06-16T14:56:28Z")

</div>

Hi guys, I have some problems with subgraphs...  
I have this db:  
 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/0/0258f2bdeba0fdc52cde7c8b0d5f7960428a5649.png)

I want to check the similarity of a specify person p1 with all the person that he follows, ex:

MATCH (p:Person {name: "Matteo Bardi"})  
CALL apoc.path.subgraphNodes(p, {  
relationshipFilter: "FOLLOWS\>",  
minLevel: 0,  
maxLevel: 1  
})  
YIELD node  
RETURN node

the image is this one:

 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/a/af65b4ba9baacbd5b9c03a7e7ec4ea093f1dc394.png)

How can I use Node Similarity in this subgraph??
