dgl.DGLGraph.subgraphs¶
-
DGLGraph.
subgraphs
(nodes)[source]¶ Return a list of subgraphs, each induced in the corresponding given nodes in the list.
Equivalent to
[self.subgraph(nodes_list) for nodes_list in nodes]
Parameters: nodes (a list of lists or iterable) – A list of node ID arrays to construct corresponding subgraphs. All nodes in all the list items must exist in the graph. Returns: G – The subgraphs. Return type: A list of DGLSubGraph See also
DGLSubGraph()
,subgraph()