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

Method _rebuild_graph

python/graphscope/client/session.py:114–124  ·  view source on GitHub ↗
(self, seq, op_result: op_def_pb2.OpResult)

Source from the content-addressed store, hash-verified

112 return self._sub_dag
113
114 def _rebuild_graph(self, seq, op_result: op_def_pb2.OpResult):
115 if isinstance(self._fetches[seq], Operation):
116 # for nx Graph
117 return op_result.graph_def
118 # get graph dag node as base
119 graph_dag_node = self._fetches[seq]
120 # construct graph
121 g = Graph(graph_dag_node)
122 # update graph flied from graph_def
123 g.update_from_graph_def(op_result.graph_def)
124 return g
125
126 def _rebuild_app(self, seq, op_result: op_def_pb2.OpResult):
127 from graphscope.framework.app import App

Callers 1

wrap_resultsMethod · 0.95

Calls 2

update_from_graph_defMethod · 0.95
GraphClass · 0.90

Tested by

no test coverage detected