welcome to the Kibana community.
About your question, I have to ask few questions: how is the parent-child relation described in the document? Is it something like parentId: keyword property in each document that can be filled or null?
In general the Kibana Graph API is more a node-based use case, where the connection between two nodes describes the co-occurrence of some field values within the same document.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.