Skip to content

How to use @kind graph query? #7437

Answered by intrigus-lgtm
ox1234 asked this question in Q&A
Discussion options

You must be logged in to vote

The query as you have written requires @kind path-problem and not @kind graph.

Documentation on the usage of @kind graph is hard to find, but it seems to work like this:
You have @kind graph as metadata and two query predicates. (You don't define any from, where, or select clause)
The first predicate defines the nodes of the graph and the second defines the edges.
The prototype of nodes is query predicate nodes(ANY_TYPE node, string attr, string val) and the prototype of edges is query predicate edges(ANY_TYPE pred, ANY_TYPE succ, string attr, string val)
See here for some kind of example:

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ox1234
Comment options

@ox1234
Comment options

@ox1234
Comment options

Answer selected by ox1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants