MCPcopy Index your code
hub / github.com/networkx/networkx / test_nodes

Method test_nodes

networkx/classes/tests/test_function.py:36–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 assert info_dict["Number of connected components"] == 2
35
36 def test_nodes(self):
37 assert nodes_equal(self.G.nodes(), list(nx.nodes(self.G)))
38 assert nodes_equal(self.DG.nodes(), list(nx.nodes(self.DG)))
39
40 def test_edges(self):
41 assert edges_equal(self.G.edges(), list(nx.edges(self.G)))

Callers

nothing calls this directly

Calls 2

nodes_equalFunction · 0.90
nodesMethod · 0.80

Tested by

no test coverage detected