MCPcopy Create free account
hub / github.com/alibaba/GraphScope / to_dict

Method to_dict

python/graphscope/framework/graph_schema.py:412–419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

410 return self.__repr__()
411
412 def to_dict(self) -> dict:
413 vertices = []
414 for entry in self._valid_vertex_labels():
415 vertices.append(entry.to_dict())
416 edges = []
417 for entry in self._valid_edge_labels():
418 edges.append(entry.to_dict())
419 return {"vertex_types": vertices, "edge_types": edges}
420
421 def from_dict(self, input: dict):
422 if self._vertex_labels or self._edge_labels:

Callers

nothing calls this directly

Calls 4

_valid_vertex_labelsMethod · 0.95
_valid_edge_labelsMethod · 0.95
appendMethod · 0.65
to_dictMethod · 0.45

Tested by

no test coverage detected