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

Method items

python/dgl/container.py:64–67  ·  view source on GitHub ↗

Get the items from the map

(self)

Source from the content-addressed store, hash-verified

62 return _api_internal._MapCount(self, k) != 0
63
64 def items(self):
65 """Get the items from the map"""
66 akvs = _api_internal._MapItems(self)
67 return [(akvs[i], akvs[i + 1]) for i in range(0, len(akvs), 2)]
68
69 def __len__(self):
70 return _api_internal._MapSize(self)

Callers 15

read_orig_idsFunction · 0.45
cleanup_procFunction · 0.45
_read_graphFunction · 0.45
convert_confFunction · 0.45
etype2canonical_etypeFunction · 0.45
cleanup_procFunction · 0.45
_chunk_graphFunction · 0.45
chunk_graphFunction · 0.45
gen_edge_filesFunction · 0.45
gen_node_weights_filesFunction · 0.45

Calls

no outgoing calls

Tested by 15

_runFunction · 0.36
_extract_etypesFunction · 0.36
_extract_edge_mapFunction · 0.36
_initFunction · 0.36
_chunk_graphFunction · 0.36
chunk_graphFunction · 0.36
_test_chunk_graphFunction · 0.36
read_orig_idsFunction · 0.36
_afuncFunction · 0.36
test_batch_netypesFunction · 0.36
get_nodes_by_ntypeFunction · 0.36