graphscope.framework.dag_utils.gremlin_to_subgraph¶
- graphscope.framework.dag_utils.gremlin_to_subgraph(interactive_query, gremlin_script, request_options=None, oid_type='int64')[source]¶
Create a subgraph from gremlin output.
- Parameters:
interactive_query (
graphscope.interactive.query.InteractiveQueryDAGNode
) – The GIE instance holds the graph that gremlin query on.gremlin_script (str) – gremlin script to be executed.
request_options (dict, optional) –
gremlin request options. format: {
”engine”: “gae”
}
oid_type (str, optional) – Type of vertex original id. Defaults to “int64”.
- Returns:
An op to create the subgraph from gremlin script