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.

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

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


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

Return type

nx.Graph or nx.DiGraph


the method is implicit called in builtin apps.