MCPcopy Index your code
hub / github.com/dmlc/dgl / _add_indent

Function _add_indent

python/dgl/sparse/sparse_matrix.py:1461–1464  ·  view source on GitHub ↗
(_str, indent)

Source from the content-addressed store, hash-verified

1459 prefix = f"{type(spmat).__name__}("
1460
1461 def _add_indent(_str, indent):
1462 lines = _str.split("\n")
1463 lines = [lines[0]] + [" " * indent + line for line in lines[1:]]
1464 return "\n".join(lines)
1465
1466 final_str = (
1467 "indices="

Callers 1

_sparse_matrix_strFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected