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

Method _unload

python/graphscope/framework/graph.py:1072–1087  ·  view source on GitHub ↗

Unload this graph from graphscope engine.

(self)

Source from the content-addressed store, hash-verified

1070 return self.__str__()
1071
1072 def _unload(self):
1073 """Unload this graph from graphscope engine."""
1074 rlt = None
1075 if self._session.info["status"] != "active" or self._key is None:
1076 return
1077 if self._detached:
1078 return
1079
1080 # close the associated interactive and learning instances
1081 self._close_interactive_instances()
1082 self._close_learning_instances()
1083
1084 # unload the graph
1085 rlt = self._session._wrapper(self._graph_node._unload())
1086 self._key = None
1087 return rlt
1088
1089 def __del__(self):
1090 # cleanly ignore all exceptions, cause session may already closed / destroyed.

Callers 1

__del__Method · 0.95

Calls 3

_wrapperMethod · 0.80

Tested by

no test coverage detected