How Relations are created between vertex in graph

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

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

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

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