graphscope.framework.dag_utils.create_subgraph

graphscope.framework.dag_utils.create_subgraph(graph, nodes=None, edges=None)[source]

Create subgraph operation for nx graph.

Parameters:
  • graph (nx.Graph) – A nx graph.

  • nodes (list) – the nodes to induce a subgraph.

  • edges (list) – the edges to induce a edge-induced subgraph.

Returns:

Operation