MCPcopy
hub / github.com/dmlc/dgl / line_graph

Method line_graph

python/dgl/graph_index.py:889–903  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 7

processMethod · 0.80
__call__Method · 0.80
test_line_graph1Function · 0.80
test_line_graph2Function · 0.80
test_no_backtrackingFunction · 0.80
_load_graphMethod · 0.80
6_line_graph.pyFile · 0.80

Calls

no outgoing calls

Tested by 3

test_line_graph1Function · 0.64
test_line_graph2Function · 0.64
test_no_backtrackingFunction · 0.64