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