I have edges of graph stored (to be more specific, the graph is bunch of trees aka forest) in aerospike. I want to do some basic traversal and find the root. This i can do in client level, by getting a parent until i reach a node which does not have a parent. But this incurs some unnecessary network latency.
Is it possible to somehow do this using a udf? Else I think this would be an awesome feature to have. Are there any alternative ways to do this?