I am trying to make a subgraph from original graph in neo4j the situation is given bellow

Here node B and C are connected with node A. So I want to make a subgraph where B and C are connected if both B and C both have relation with A . I am confused about which cypher query will be appropriate for solving this problem.

Moreover i am thinking of using NetWorkx since neo4j has NetworkX binding . so kindly help me how would I approach this problem with neo4j cypher. I am using neo4j 3. 5.8