# How to establish relationship in a family tree

**URL:** <https://community.neo4j.com/t/how-to-establish-relationship-in-a-family-tree/67523>\
**Category:** Cypher\
**Tags:** apoc, cypher\
**Created:** [April 23, 2024, 7:56pm UTC](https://community.neo4j.com/t/how-to-establish-relationship-in-a-family-tree/67523 "2024-04-23T19:56:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayekaromkar15](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mayekaromkar15/32/31453_2.png) [@mayekaromkar15](https://community.neo4j.com/u/mayekaromkar15)\
**Post date:** [April 23, 2024, 7:56pm UTC](https://community.neo4j.com/t/how-to-establish-relationship-in-a-family-tree/67523/1 "2024-04-23T19:56:10Z")

</div>

I am trying to create a family tree. I have a use case where there are 10 nodes in one family named family A and 5 nodes in another family name family B. Suppose one node from family A makes a request to a node in family B. I want to establish every possible relationship among both the families. How can that be achieved?

---

<div class="post-metadata">

**Author:** ![florent\_biville](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/florent_biville/32/14205_2.png) [@florent\_biville](https://community.neo4j.com/u/florent_biville)\
**Post date:** [April 23, 2024, 8:07pm UTC](https://community.neo4j.com/t/how-to-establish-relationship-in-a-family-tree/67523/2 "2024-04-23T20:07:48Z")

</div>

Can you elaborate?  
I'm not sure I understand what problems you are facing.

How is your data model at the moment?
