MCPcopy
hub / github.com/networkx/networkx / test_edges_equal_directed

Function test_edges_equal_directed

networkx/utils/tests/test_misc.py:369–375  ·  view source on GitHub ↗

Test whether ``edges_equal`` properly compares directed edges.

()

Source from the content-addressed store, hash-verified

367
368
369def test_edges_equal_directed():
370 """Test whether ``edges_equal`` properly compares directed edges."""
371 G = nx.DiGraph([(0, 1)])
372 I = nx.DiGraph([(1, 0)])
373
374 assert edges_equal(G.edges(), I.edges(), directed=False)
375 assert not edges_equal(G.edges(), I.edges(), directed=True)
376
377
378def test_edges_equal_directed_data():

Callers

nothing calls this directly

Calls 2

edgesMethod · 0.95
edges_equalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…