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

Function test_isolates

easygraph/functions/tests/test_isolate.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_isolates():
16 G = eg.Graph()
17 G.add_edge(0, 1)
18 G.add_nodes_from([2, 3])
19 assert sorted(eg.isolates(G)) == [2, 3]
20
21
22def test_number_of_isolates():

Callers

nothing calls this directly

Calls 3

add_edgeMethod · 0.95
add_nodes_fromMethod · 0.95
GraphMethod · 0.80

Tested by

no test coverage detected