Hi all, I'm really a newby with OrientDB, so ... please "forgive" my questions... :) I started having fun with OrientDB... but I have some doubt... maybe someone can help me in understand better I set up a very simple graph: 3 nodes (A,B,C), 3 vertex (1,2,3) each vertex has two additional attributed: name and value each edge has three additional values: low, high, weight graph is as follow: A-1->B A-2->C B-3->C 1: low=1, high=8, weight=3 2: low=1, high=5, weight=5 3: low=6, high=8, weight=7 A: name=donald, value=2 B: name=mikey, value=4 C: name=goffy, value=8 given the situation I have following questions, (if possible I like to go with SQL like query only): 1) is it possible to traverse the graph only if the edge respect condition on low and high (i.e if low<prop and high>prop)? i.e if prop=7, graph became A-1->B B-3->C
2) is it possible calculate the sum of the node's value, multiplied by the edge value, so to have a "weighted sum" of the value? i.e if graph is A-1->B-3->C 2 4 8 3 7 sum=2+3*(4+(7*8))= 182 as general question: how to traverse directed graphs (how to model)? I hope I was clear in explaining my "issues"... :) Thanks in advance! -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
