graphscope.experimental.nx.Graph.project_to_simple

Graph.project_to_simple(v_prop=None, e_prop=None)[source]

Project nx graph to a simple graph to run builtin alogorithms.

A simple graph is a accesser wrapper of property graph that only single edge attribute and single node attribute are available.

Parameters
  • v_prop (the node attribute key to project, (optional, default None)) –

  • e_prop (the edge attribute key to project, (optional, default None)) –

Returns

simple_graph – A nx.Graph object that hold a simple graph projected by host property graph.

Return type

nx.Graph or nx.DiGraph

Notes

the method is implicit called in builtin apps.