Consider a query like this
return the k-hop neighbors count.
CREATE QUERY khop(VERTEX<MyNode> start_node, INT depth) for graph graph500{
int i = 0;
Start = {start_node};
WHILE (i < depth) DO
Start = SELECT v FROM Start:u - (:e)->:v where v.some_property == 1
i = i + 1;
END;
PRINT Start.size();
}
What if some_property
only exists in one Edge table. What value would I get for other kind of edges? I tried is null
predicate but it errors saying that some_property
is not nullable.
regards,
Amos