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

Method from_graph_def

python/graphscope/framework/graph_schema.py:288–293  ·  view source on GitHub ↗
(self, graph_def)

Source from the content-addressed store, hash-verified

286 self._e_label_index = {}
287
288 def from_graph_def(self, graph_def):
289 if graph_def.extension.Is(graph_def_pb2.VineyardInfoPb.DESCRIPTOR):
290 return self._from_vineyard(graph_def)
291 if graph_def.extension.Is(graph_def_pb2.MutableGraphInfoPb.DESCRIPTOR):
292 return self._from_mutable_graph(graph_def)
293 return self._from_store_service(graph_def)
294
295 def _from_store_service(self, graph_def):
296 """Decode information from proto message, generated by engine.

Callers 9

updateMethod · 0.95
__init__Method · 0.80
update_from_graph_defMethod · 0.80
_project_to_simpleMethod · 0.80

Calls 3

_from_vineyardMethod · 0.95
_from_mutable_graphMethod · 0.95
_from_store_serviceMethod · 0.95

Tested by

no test coverage detected