# How Relations are created between vertex in graph

**URL:** <https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155>\
**Category:** Kibana\
**Tags:** elastic-stack-graph\
**Created:** [January 19, 2018, 3:59am UTC](https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155 "2018-01-19T03:59:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnaraj221193](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@krishnaraj221193](https://discuss.elastic.co/u/krishnaraj221193)\
**Post date:** [January 19, 2018, 3:59am UTC](https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155/1 "2018-01-19T03:59:07Z")

</div>

Hi Sir,  
I can see the relation between the vertex in graph api but i cannot understand which vertex is parent and which vertex is child how to find that through graph api

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 19, 2018, 4:05am UTC](https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155/2 "2018-01-19T04:05:01Z")

</div>

There's no concept of parent and child in graph, they are simply linked vertices.

---

<div class="post-metadata">

**Author:** ![krishnaraj221193](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@krishnaraj221193](https://discuss.elastic.co/u/krishnaraj221193)\
**Post date:** [January 19, 2018, 4:09am UTC](https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155/3 "2018-01-19T04:09:41Z")

</div>

but graph will be related based on level hierarchy so how to know which vertex belong to which level

Lets say A is parent of B and C so

```
   A -----level 0

```

B C ------level 1

How to find this in graph

What algorithm they use to create graph

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 16, 2018, 4:09am UTC](https://discuss.elastic.co/t/how-relations-are-created-between-vertex-in-graph/116155/4 "2018-02-16T04:09:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
