Add graph query API (node/edge/attribute filters and shortest-path search)#75
Open
harsh-sikhwal wants to merge 11 commits into
Open
Add graph query API (node/edge/attribute filters and shortest-path search)#75harsh-sikhwal wants to merge 11 commits into
harsh-sikhwal wants to merge 11 commits into
Conversation
Collaborator
|
If there are any schema changes lets add a link in the MR description that points to redocly which allows a user to easily review the openapi.yaml file. The format is the following and just the branch name needs to be replaced (in this case feature-query-graph): |
ajbalogh
reviewed
Jul 16, 2026
| name: | ||
| description: Name of this node filter. | ||
| type: string | ||
| node_filter: |
Collaborator
There was a problem hiding this comment.
did we decide on an array of filters at the node/edge/graph level?
Member
Author
There was a problem hiding this comment.
yes - array of node identifiers having an array of attributes inside - same for edges and for graph filter - just an array of attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
query.yamlschema andQueryRequest/QueryResponsemessage types (node filter, edge filter, attribute filter, shortest-path) toinfragraph.proto.InfraGraphService.query_graph()with node/edge attribute matching (_match_attrs,_process_node_filter,_process_edge_filter) and shortest-path lookup via networkx.artifacts/infragraph.proto,artifacts/openapi.yaml, anddocs/src/openapi.htmlfrom the updated schema.schema/query.yaml.test_graph_query.pycovering node/edge/attribute/shortest-path queries; updates existing blueprint and translator tests, and strips debug prints from test suites.Schema:
https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/Keysight/infragraph/feature-query-graph/artifacts/openapi.yaml&nocors
Example usage
Node attribute filter query
Graph attribute filter query
Shortest path query