graphscope.g

graphscope.g(incoming_data=None, oid_type='int64', vid_type='uint64', directed=True, generate_eid=True, retain_oid=True, vertex_map='global', compact_edges=False, use_perfect_hash=False)[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"