MCPcopy
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
325def _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
333def _sample_mask(idx, l):

Callers 1

processMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected