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

Method graphs_equal

python/graphscope/nx/tests/classes/test_graph.py:38–45  ·  view source on GitHub ↗
(self, H, G)

Source from the content-addressed store, hash-verified

36 self.K3.add_edges_from(self.k3edges)
37
38 def graphs_equal(self, H, G):
39 assert G._adj == H._adj
40 assert G._node == H._node
41 assert G.graph == H.graph
42 assert G.name == H.name
43 if G.is_directed() and H.is_directed():
44 assert G._pred == H._pred
45 assert G._succ == H._succ
46
47 def shallow_copy_node_attr(self, H, G):
48 assert G.nodes[0]["foo"] == H.nodes[0]["foo"]

Callers 3

test_copyMethod · 0.95
test_class_copyMethod · 0.95
test_subgraphMethod · 0.95

Calls 1

is_directedMethod · 0.45

Tested by

no test coverage detected