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

Method to_dict

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

Source from the content-addressed store, hash-verified

235 return s
236
237 def to_dict(self) -> dict:
238 # super dict
239 sd = super().to_dict()
240 relations = []
241 for r in self._relations:
242 relations.append(
243 {"source_vertex": r.source, "destination_vertex": r.destination}
244 )
245 sd.update({"vertex_type_pair_relations": relations})
246 return sd
247
248
249class GraphSchema:

Callers

nothing calls this directly

Calls 3

appendMethod · 0.65
to_dictMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected