Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ _parse_index_file
Function
_parse_index_file
python/dgl/data/citation_graph.py:325–330 ·
view source on GitHub ↗
Parse index file.
(filename)
Source
from the content-addressed store, hash-verified
323
324
325
def
_parse_index_file(filename):
326
""
"Parse index file."
""
327
index = []
328
for
line in open(filename):
329
index.append(int(line.strip()))
330
return
index
331
332
333
def
_sample_mask(idx, l):
Callers
1
process
Method · 0.85
Calls
1
append
Method · 0.80
Tested by
no test coverage detected