MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / clone

Method clone

easygraph/classes/graph.py:363–371  ·  view source on GitHub ↗

r"""Clone the graph.

(self)

Source from the content-addressed store, hash-verified

361 return sub_v_set
362
363 def clone(self):
364 r"""Clone the graph."""
365 # _g = Graph(self.num_v, extra_selfloop=self._has_extra_selfloop, device=self.device)
366 # _g=self.__class__()
367 # _g.device="cpu"
368 # _g.extra_selfloop=False
369 # _g.edges = deepcopy(self.edges)
370 # _g.cache = deepcopy(self.cache)
371 return self.copy()
372
373 @name.setter
374 def name(self, s):

Callers 6

L_GCNMethod · 0.95
D_v_neg_1_2Method · 0.45
D_vMethod · 0.45
N_vMethod · 0.45
test_cloneFunction · 0.45
forwardMethod · 0.45

Calls 1

copyMethod · 0.95

Tested by 1

test_cloneFunction · 0.36