dgl.DGLGraph.line_graph

DGLGraph.line_graph(backtracking=True, shared=False)[source]

Return the line graph of this graph.

Parameters:
  • backtracking (bool, optional) – Whether the returned line graph is backtracking.
  • shared (bool, optional) – Whether the returned line graph shares representations with self.
Returns:

The line graph of this graph.

Return type:

DGLGraph