MCPcopy Create free account
hub / github.com/alibaba/GraphScope / interactive

Function interactive

python/graphscope/client/session.py:1633–1653  ·  view source on GitHub ↗

Create an interactive engine and get the handler to execute gremlin and cypher queries. See params detail in :meth:`graphscope.Session.interactive` Returns: :class:`graphscope.interactive.query.InteractiveQueryDAGNode`: InteractiveQuery to execute gremlin and cypher que

(graph, params=None, with_cypher=False)

Source from the content-addressed store, hash-verified

1631
1632
1633def interactive(graph, params=None, with_cypher=False):
1634 """Create an interactive engine and get the handler to execute gremlin and cypher queries.
1635
1636 See params detail in :meth:`graphscope.Session.interactive`
1637
1638 Returns:
1639 :class:`graphscope.interactive.query.InteractiveQueryDAGNode`:
1640 InteractiveQuery to execute gremlin and cypher queries, evaluated in eager mode.
1641
1642 Examples:
1643
1644 .. code:: python
1645
1646 >>> import graphscope
1647 >>> g = graphscope.g()
1648 >>> interactive_query = graphscope.interactive()
1649 """
1650 assert graph is not None, "graph cannot be None"
1651 sess = graph._session # pylint: disable=protected-access
1652 assert sess is not None, "The graph object is invalid"
1653 return sess.interactive(graph, params, with_cypher)
1654
1655
1656def graphlearn(graph, nodes=None, edges=None, gen_labels=None):

Callers 1

gremlinFunction · 0.70

Calls 1

interactiveMethod · 0.80

Tested by

no test coverage detected