graphscope.g

graphscope.g(incoming_data=None, oid_type='int64', directed=True, generate_eid=True)[source]

Construct a GraphScope graph object on the default session.

It will launch and set a session to default when there is no default session found.

See params detail in graphscope.framework.graph.GraphDAGNode

Returns

Evaluated in eager mode.

Return type

graphscope.framework.graph.GraphDAGNode

Examples:

>>> import graphscope
>>> g = graphscope.g()

>>> import graphscope
>>> sess = graphscope.session()
>>> sess.as_default()
>>> g = graphscope.g() # creating graph on the session "sess"