if is_all(eid):
num_edges = self.cached_graph.num_edges()
else:
eid = utils.toindex(eid)
num_edges = len(eid)
if isinstance(h_uv, dict):
for key, val in h_uv.items():
assert F.shape(val)[0] == num_edges
else:
assert F.shape(h_uv)[0] == num_edges
// set
if is_all(eid):
if isinstance(h_uv, dict):
for key, val in h_uv.items():
self._edge_frame[key] = val
else:
self._edge_frame[__REPR__] = h_uv
else:
if isinstance(h_uv, dict):
self._edge_frame[eid] = h_uv
else:
self._edge_frame[eid] = {__REPR__ : h_uv}
def get_e_repr(self, u=ALL, v=ALL):
Get node(s) representation.