Hi,
I am evaluating Dgraph to see if it can be used for the application I am building, however, my knowledge of Dgraph’s implementation of GraphQL is not good enough to be able to establish if this is possible:
My aim is to recursively traverse a graph starting at a vertex, performing a calculation upon a weighted facet and use that value on the next recursion.
For your SET example, I see you want to expand just one user and relate to others until you reach a certain minimum value. Recurse would do this separately, would not relate things (But you might get something by using Var Block in sequences). In that case something like K-Shortest might be the case. But not sure exactly.
This week I’m focused on some tests with Dgraph, I can not delve into your case. But I can get your doubts to come.
Thanks for your help. I don’t think I explained the problem well enough.
I need to create a graph with weights on the edges.
I need to traverse the graph and return the product of the weights in the traversal path
So for instance:
node1 trusts node2 .5
node2 trusts node3 .5
node1 trusts node4 .4
A traversal from node 1 would return
node2 .5
node3 .25
node4 .4
Is this possible. If it isn’t, is it possible to write custom traversal code as some sort of plugin?