Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
def
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
22
def
test_number_of_isolates():
Callers
nothing calls this directly
Calls
3
add_edge
Method · 0.95
add_nodes_from
Method · 0.95
Graph
Method · 0.80
Tested by
no test coverage detected