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

Method test_copy

python/graphscope/nx/tests/classes/test_graph.py:114–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 assert DG is RDG._graph
113
114 def test_copy(self):
115 G = self.Graph()
116 G.add_node(0)
117 G.add_edge(1, 2)
118 self.add_attributes(G)
119 # deep copy
120 H = G.copy()
121 self.graphs_equal(H, G)
122
123 def test_class_copy(self):
124 G = self.Graph()

Callers

nothing calls this directly

Calls 4

add_nodeMethod · 0.95
add_edgeMethod · 0.95
copyMethod · 0.95
graphs_equalMethod · 0.95

Tested by

no test coverage detected