Return the line graph of this graph. Parameters ---------- backtracking : bool, optional (default=False) Whether (i, j) ~ (j, i) in L(G). (i, j) ~ (j, i) is the behavior of networkx.line_graph. Returns ------- GraphIndex
(self, backtracking=True)
| 887 | return ret |
| 888 | |
| 889 | def line_graph(self, backtracking=True): |
| 890 | """Return the line graph of this graph. |
| 891 | |
| 892 | Parameters |
| 893 | ---------- |
| 894 | backtracking : bool, optional (default=False) |
| 895 | Whether (i, j) ~ (j, i) in L(G). |
| 896 | (i, j) ~ (j, i) is the behavior of networkx.line_graph. |
| 897 | |
| 898 | Returns |
| 899 | ------- |
| 900 | GraphIndex |
| 901 | The line graph of this graph. |
| 902 | """ |
| 903 | return _CAPI_DGLGraphLineGraph(self, backtracking) |
| 904 | |
| 905 | def to_immutable(self): |
| 906 | """Convert this graph index to an immutable one. |
no outgoing calls