def dynamic_project_graph(graphscope_session): with default_session(graphscope_session): g = nx.Graph() g.add_edges_from([(1, 2), (2, 3)], weight=3) pg = g.project_to_simple(e_prop="weight") yield pg
def dynamic_property_graph(graphscope_session): with default_session(graphscope_session): g = nx.Graph() g.add_edges_from([(1, 2), (2, 3)], weight=3) yield g